diff --git a/.gitea/workflows/deploy-prod.yml b/.gitea/workflows/deploy-prod.yml index f52ffd9..6b28f22 100644 --- a/.gitea/workflows/deploy-prod.yml +++ b/.gitea/workflows/deploy-prod.yml @@ -8,16 +8,18 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest + container: + image: docker:24-dind + options: --privileged steps: + - name: Install git + run: apk add --no-cache git + - name: Checkout code run: | git clone --depth 1 --branch prod https://${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}@git.local.evan.casa/evan/lediscord.git . - - name: Force IPv4 for DNS - run: | - echo 'precedence ::ffff:0:0/96 100' | tee -a /etc/gai.conf || true - - name: Login to Registry run: | echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin