From 1868e8233094bcb8abbeeef9e5ce2176dd1a2975 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Sun, 30 Mar 2025 17:07:00 +0300 Subject: [PATCH] use docker-in-docker --- .gitea/workflows/deploy.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9aefa3f..9754cd4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -8,10 +8,18 @@ on: jobs: build-and-deploy: runs-on: docker + container: + image: docker:dind + options: --privileged steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Set up Docker buildx + uses: docker/setup-buildx-action@v3 + with: + driver: docker + - name: Login to Docker Registry uses: docker/login-action@v3 with: @@ -22,6 +30,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v6 with: + context: . push: true tags: git.neur0tx.site/${{ github.repository_owner }}/${{ github.repository_name }}:latest @@ -29,5 +38,4 @@ jobs: if: ${{ success() }} run: | apk add --no-cache curl - curl -H "${{ secrets.DEPLOYER_AUTH }}" ${{ secrets.DEPLOYER_URL }} - container: alpine:latest \ No newline at end of file + curl -H "${{ secrets.DEPLOYER_AUTH }}" ${{ secrets.DEPLOYER_URL }} \ No newline at end of file