mv config to root
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 48s

This commit is contained in:
2026-03-08 16:53:38 +03:00
parent aaf327a42d
commit 37b001ce97
2 changed files with 5 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout repository
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Docker build - name: Docker build
run: docker build --tag git.madsky.ru/vadim/tracker . run: docker build --tag git.madsky.ru/vadim/tracker .
@@ -18,12 +18,12 @@ jobs:
registry: git.madsky.ru registry: git.madsky.ru
username: ${{ vars.USERNAME }} username: ${{ vars.USERNAME }}
password: ${{ secrets.PASSWORD }} password: ${{ secrets.PASSWORD }}
- name: Push Docker image - name: Push Docker image to gitea registry
run: | run: |
IMAGE_TAG="git.madsky.ru/vadim/tracker:${{ gitea.sha }}" IMAGE_TAG="git.madsky.ru/vadim/tracker:${{ gitea.sha }}"
docker tag git.madsky.ru/vadim/tracker $IMAGE_TAG docker tag git.madsky.ru/vadim/tracker $IMAGE_TAG
docker push $IMAGE_TAG docker push $IMAGE_TAG
- name: Execute remote SSH commands using SSH key - name: Execute remote SSH commands
uses: appleboy/ssh-action@v1 uses: appleboy/ssh-action@v1
with: with:
host: 192.168.1.11 host: 192.168.1.11
@@ -34,6 +34,5 @@ jobs:
- name: List files in the repository - name: List files in the repository
run: | run: |
ls ${{ gitea.workspace }} ls ${{ gitea.workspace }}
# docker run -d --name tracker -p 3300:3000 git.madsky.ru/vadim/tracker:latest - name: Ready
- name: Execute a single command run: echo "Success!"
run: echo "Hello, world!"

View File

@@ -10,6 +10,5 @@ RUN CGO_ENABLED=0 go build -o main ./cmd/main.go
FROM alpine:latest FROM alpine:latest
WORKDIR /app WORKDIR /app
COPY --from=builder /app/main . COPY --from=builder /app/main .
COPY --from=builder /app/config ./config
EXPOSE 3000 EXPOSE 3000
CMD ["./main"] CMD ["./main"]