mv config to root
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 48s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 48s
This commit is contained in:
@@ -8,7 +8,7 @@ jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
- name: Docker build
|
||||
run: docker build --tag git.madsky.ru/vadim/tracker .
|
||||
@@ -18,12 +18,12 @@ jobs:
|
||||
registry: git.madsky.ru
|
||||
username: ${{ vars.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
- name: Push Docker image
|
||||
- name: Push Docker image to gitea registry
|
||||
run: |
|
||||
IMAGE_TAG="git.madsky.ru/vadim/tracker:${{ gitea.sha }}"
|
||||
docker tag git.madsky.ru/vadim/tracker $IMAGE_TAG
|
||||
docker push $IMAGE_TAG
|
||||
- name: Execute remote SSH commands using SSH key
|
||||
- name: Execute remote SSH commands
|
||||
uses: appleboy/ssh-action@v1
|
||||
with:
|
||||
host: 192.168.1.11
|
||||
@@ -34,6 +34,5 @@ jobs:
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
# docker run -d --name tracker -p 3300:3000 git.madsky.ru/vadim/tracker:latest
|
||||
- name: Execute a single command
|
||||
run: echo "Hello, world!"
|
||||
- name: Ready
|
||||
run: echo "Success!"
|
||||
@@ -10,6 +10,5 @@ RUN CGO_ENABLED=0 go build -o main ./cmd/main.go
|
||||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/main .
|
||||
COPY --from=builder /app/config ./config
|
||||
EXPOSE 3000
|
||||
CMD ["./main"]
|
||||
Reference in New Issue
Block a user