From 67cc9d046398c9b189838728abb98007cd207a1e Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Sun, 30 Mar 2025 17:37:23 +0300 Subject: [PATCH] fix deploy --- .gitea/workflows/deploy.yml | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 60e5ba2..0fa4a1a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,30 +11,19 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - - name: Login to Docker Registry - uses: docker/login-action@v3 - container: - image: docker:dind - options: --privileged - with: - registry: git.neur0tx.site - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - + - name: Build and push Docker image - uses: docker/build-push-action@v6 container: image: docker:dind options: --privileged - with: - context: . - push: true - tags: git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest - + run: | + echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.neur0tx.site -u "${{ github.actor }}" --password-stdin + docker build -t git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest . + docker push git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest + - name: Deploy if: ${{ success() }} + container: alpine:latest run: | - apt-get install -y --no-install-recommends curl - curl -H "${{ secrets.DEPLOYER_AUTH }}" ${{ secrets.DEPLOYER_URL }} - container: alpine:latest \ No newline at end of file + apk add --no-cache curl + curl -H "${{ secrets.DEPLOYER_AUTH }}" ${{ secrets.DEPLOYER_URL }} \ No newline at end of file