From 440eaf8853e9bc0ba302a2e8aa9ef02faefc715c Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Sun, 30 Mar 2025 18:32:19 +0300 Subject: [PATCH] use actions again --- .gitea/workflows/deploy.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9389fcf..6fb1a34 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,10 +15,7 @@ jobs: - name: Set Up Node run: apk add --no-cache nodejs - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Build and push Docker image + - name: Start Docker run: | dockerd-entrypoint.sh & @@ -27,13 +24,22 @@ jobs: sleep 1 done - REPO_LOWERCASE=$(echo "${{ env.GITHUB_REPOSITORY }}" | tr '[:upper:]' '[:lower:]') - IMAGE="git.neur0tx.site/$REPO_LOWERCASE:latest" - echo "IMAGE=$IMAGE" >> $GITHUB_ENV + - name: Checkout repository + uses: actions/checkout@v4 - echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.neur0tx.site -u "${{ github.actor }}" --password-stdin - docker build -t $IMAGE . - docker push $IMAGE + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.neur0tx.site + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: git.neur0tx.site/neur0toxine/vegapokerbot:latest - name: Deploy if: ${{ success() }}