From 1f379db3a29107aaef83f7cdebb827247e6d4f61 Mon Sep 17 00:00:00 2001 From: Ricardo Carneiro Date: Sun, 14 Sep 2025 00:53:28 -0300 Subject: [PATCH] fix: deploy --- .gitea/workflows/deploy.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a0ae256..1fe495a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,17 +15,17 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v2 - name: Set build variables id: vars run: | - if [[ ${{ github.ref }} == refs/heads/main ]] || [[ ${{ github.ref }} == refs/heads/master ]]; then + if [[ "${{ github.ref }}" == "refs/heads/main" ]] || [[ "${{ github.ref }}" == "refs/heads/master" ]]; then echo "PLATFORM=linux/arm64" >> $GITHUB_OUTPUT echo "TARGET_ARCH=arm64" >> $GITHUB_OUTPUT echo "TAG_SUFFIX=" >> $GITHUB_OUTPUT echo "DEPLOY_ENV=production" >> $GITHUB_OUTPUT - elif [[ ${{ github.ref }} == refs/heads/release/* ]]; then + elif [[ "${{ github.ref }}" == refs/heads/release/* ]]; then echo "PLATFORM=linux/amd64" >> $GITHUB_OUTPUT echo "TARGET_ARCH=amd64" >> $GITHUB_OUTPUT echo "TAG_SUFFIX=-staging" >> $GITHUB_OUTPUT @@ -38,7 +38,7 @@ jobs: fi - name: Cache Docker layers - uses: actions/cache@v4 + uses: actions/cache@v3 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ steps.vars.outputs.TARGET_ARCH }}-${{ github.sha }} @@ -47,7 +47,7 @@ jobs: ${{ runner.os }}-buildx- - name: Build and push Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile @@ -58,10 +58,8 @@ jobs: registry.redecarneir.us/convertit:${{ github.sha }}${{ steps.vars.outputs.TAG_SUFFIX }} cache-from: | type=local,src=/tmp/.buildx-cache - type=registry,ref=registry.redecarneir.us/convertit:cache-${{ steps.vars.outputs.TARGET_ARCH }} cache-to: | type=local,dest=/tmp/.buildx-cache-new,mode=max - type=registry,ref=registry.redecarneir.us/convertit:cache-${{ steps.vars.outputs.TARGET_ARCH }},mode=max build-args: | BUILDKIT_INLINE_CACHE=1 TARGETARCH=${{ steps.vars.outputs.TARGET_ARCH }}