From 39efee7c7b44127f049362b845557885d12eaee1 Mon Sep 17 00:00:00 2001 From: "Nikolai X. Shadeuxs" Date: Wed, 19 Jun 2024 04:28:32 -0400 Subject: [PATCH] Update .gitea/workflows/main.yml --- .gitea/workflows/main.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 2e67e63..53400e9 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -15,6 +15,14 @@ jobs: - name: Check out code uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install pnpm + run: npm install -g pnpm + - name: Set up Docker uses: docker/setup-buildx-action@v3 @@ -28,12 +36,12 @@ jobs: uses: docker/metadata-action@v5 id: meta with: - images: vontainment/v-firecrawl + images: vontainment/v-gpt-node-app flavor: latest=false tags: | - type=raw,value=main,enable=${{ gitea.ref == 'refs/heads/main' }} - type=raw,value=dev,enable=${{ gitea.ref == 'refs/heads/dev' }} - type=sha,priority=100,enable=${{ gitea.event_name == 'push' }} + type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' }} + type=raw,value=dev,enable=${{ github.ref == 'refs/heads/dev' }} + type=sha,priority=100,enable=${{ github.event_name == 'push' }} - name: Build and push Docker image uses: docker/build-push-action@v5 @@ -43,10 +51,3 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=local,src=/opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build/ - cache-to: type=local,dest=/opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build-new/ - - - name: Rotate build cache - run: | - rm -rf /opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build/ - mv /opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build-new/ /opt/hostedtoolcache/${{ gitea.repository }}-${{ gitea.ref_name }}/build/