1
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m54s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m54s
Details
This commit is contained in:
parent
00cddc2f7d
commit
c904a6db9f
|
@ -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 .
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
Loading…
Reference in New Issue