Compare commits
17 Commits
84d2035b9e
...
78fc7b1cb9
Author | SHA1 | Date |
---|---|---|
|
78fc7b1cb9 | |
|
c904a6db9f | |
|
00cddc2f7d | |
|
4272f60528 | |
|
404975fcec | |
|
12927c17ea | |
|
083c0ca7f2 | |
|
81a505c772 | |
|
f23e219240 | |
|
c245bc0faa | |
|
4bc5a281a3 | |
|
7b5be2d07d | |
|
57b0c4d296 | |
|
1311b6c659 | |
|
ed9d812dc6 | |
|
ca2ea06778 | |
|
0700862857 |
|
@ -9,8 +9,6 @@ jobs:
|
|||
image: catthehacker/ubuntu:act-latest
|
||||
volumes:
|
||||
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
|
||||
# env:
|
||||
# RUNNER_TOOL_CACHE: /toolcache
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
|
@ -19,7 +17,13 @@ jobs:
|
|||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
- run: docker version
|
||||
- name: Check out repository code
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA1_TOKEN }}
|
||||
uses: git clone root@106.14.174.241:3000/root/simple-go-action.git .
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
with:
|
||||
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 .
|
||||
-name: Deploy to local Docker
|
||||
run: docker run -d -p 8080:80 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