From 4cb57132aeab6973812cfd64cb9dec943cc86a98 Mon Sep 17 00:00:00 2001 From: zhangyelong Date: Thu, 6 Jun 2024 18:41:00 +0800 Subject: [PATCH] test --- .github/workflows/publish-docker-image.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index 4720d0374..e3f55581b 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -14,9 +14,18 @@ jobs: environment: production steps: - - name: Get Tag ENV + - name: Set Version ENV run: echo "VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV - name: Build and Push Docker Image run: | echo "Version: ${{ github.ref == 'refs/heads/master' && github.sha || env.VERSION }}" + deploy: + name: Deploy + runs-on: ubuntu-latest + needs: setup-build-publish + environment: production + steps: + - name: Deploy + run: | + echo "Version: ${{ github.ref == 'refs/heads/master' && github.sha || env.VERSION }}" \ No newline at end of file