1
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m54s Details

This commit is contained in:
dm 2024-08-13 10:44:42 +08:00
parent 00cddc2f7d
commit c904a6db9f
2 changed files with 18 additions and 0 deletions

View File

@ -21,3 +21,7 @@ jobs:
uses: https://gitea.com/actions/checkout@v4 uses: https://gitea.com/actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- run: echo "🛠️ The Gitea Actions workflow is now ready to test your code on the runner."
- name: Build Docker image
run: docker build -t my-docker-image .

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
# Use an official Go runtime as the base image
FROM golang:1.21
# Set the working directory inside the container
WORKDIR /app
# Copy the source code into the container
COPY . .
# Build the Go application
RUN go build -o app
# Set the entry point for the container
ENTRYPOINT ["./app"]