From 37b001ce97160fdf3ade39dbd282214e87b79639 Mon Sep 17 00:00:00 2001 From: Vadim Date: Sun, 8 Mar 2026 16:53:38 +0300 Subject: [PATCH] mv config to root --- .gitea/workflows/deploy.yaml | 11 +++++------ Dockerfile | 1 - 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index c525773..2c7e48d 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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!" \ No newline at end of file + - name: Ready + run: echo "Success!" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 51653c3..74012ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file