From d4950b65be0e042b9dbd0cd647bc137c4629a41f Mon Sep 17 00:00:00 2001 From: LamGC Date: Sun, 19 Mar 2023 01:12:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=8B=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 1f2db28..bb3e039 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -23,12 +23,15 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Get version + id: get-version + run: echo "::set-output name=version::$(cat LATEST_VERSION)" - name: Build and push container image uses: docker/build-push-action@v4 with: context: . push: true - tags: lamgc/jenkins-agent-docker:latest, lamgc/jenkins-agent-docker:$(cat LATEST_VERSION) + tags: lamgc/jenkins-agent-docker:latest, lamgc/jenkins-agent-docker:${{ steps.get-version.outputs.version }} platforms: linux/amd64,linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max \ No newline at end of file