From 1df9978f3c98a191271256fb3570587994d819e2 Mon Sep 17 00:00:00 2001 From: huanghs Date: Sat, 17 Aug 2024 17:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/cache-npx?= =?UTF-8?q?.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cache-npx.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.gitea/workflows/cache-npx.yml b/.gitea/workflows/cache-npx.yml index 8353f8c..55f300d 100644 --- a/.gitea/workflows/cache-npx.yml +++ b/.gitea/workflows/cache-npx.yml @@ -44,12 +44,6 @@ jobs: path: /opt/docker-cache/.build-cache key: ${{ runner.os }}-${{ steps.meta.outputs.REPO_NAME }}-docker-build-cache - - name: Get Meta - id: meta - run: | - echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - echo REPO_VERSION=$(echo ${{ github.ref }} | awk -F"/" '{print $3}' | awk -F"v" '{print $2}') >> $GITHUB_OUTPUT - - name: Build and push uses: docker/build-push-action@v4 with: @@ -60,6 +54,6 @@ jobs: linux/arm64 push: true tags: | - ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_USERNAME }}/action-demo:${{ steps.meta.outputs.REPO_VERSION }} + ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_USERNAME }}/action-demo:latest cache-from: type=local,src=/opt/docker-cache/.build-cache cache-to: type=local,dest=/opt/docker-cache/.build-cache,mode=max