From 5c7fcfbc0419a6c9e71fd7db353c3c1f7a16e276 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Sun, 30 Mar 2025 18:03:58 +0300 Subject: [PATCH] another attempt at fixing --- .gitea/workflows/deploy.yml | 45 ++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1c8797a..fe8a2e6 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -8,32 +8,35 @@ on: jobs: build-and-deploy: runs-on: docker - container: - image: docker:dind - options: --privileged steps: - - name: Set Up Node - run: apk add --no-cache nodejs - - name: Checkout repository uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: 'amd64' + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - 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 - run: | - dockerd-entrypoint.sh & - - until docker info > /dev/null 2>&1; do - echo "Waiting for Docker daemon..." - sleep 1 - done - - 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 - + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest + - name: Deploy if: ${{ success() }} - container: alpine:latest run: | - apk add --no-cache curl - curl -H "${{ secrets.DEPLOYER_AUTH }}" ${{ secrets.DEPLOYER_URL }} \ No newline at end of file + 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