From c201b1c4017b41df5711d9dcb569357498fd48f4 Mon Sep 17 00:00:00 2001 From: Alex <33379584+alexyao2015@users.noreply.github.com> Date: Thu, 24 Feb 2022 00:26:34 -0600 Subject: [PATCH] Add release tag --- .github/workflows/docker-build.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 6b860b6..4cdba03 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -307,6 +307,19 @@ jobs: --image-name ci:${{ github.run_number }} \ --latest + # if its tagged, push to release + - name: Push image (tag) + if: ${{ startsWith(github.ref, 'refs/tags/') }} + run: | + ./publish.py \ + --tag release \ + --repo ${{ matrix.registry.repo }} \ + --image \ + --github-sha ${ZM_VERSION}-${ES_VERSION} \ + --run-number ${{ github.run_number }} \ + --arch ${{ matrix.arch }} \ + --image-name ci:${{ github.run_number }} + create_manifest: name: Create Manifest runs-on: ubuntu-latest @@ -373,5 +386,16 @@ jobs: --repo ${{ matrix.registry.repo }} \ --manifest \ --github-sha ${ZM_VERSION}-${ES_VERSION} \ - --run-number ${{ github.run_number }} + --run-number ${{ github.run_number }} \ --latest + + # if its tagged, push to release + - name: Push image (tag) + if: ${{ startsWith(github.ref, 'refs/tags/') }} + run: | + ./publish.py \ + --tag release \ + --repo ${{ matrix.registry.repo }} \ + --manifest \ + --github-sha ${ZM_VERSION}-${ES_VERSION} \ + --run-number ${{ github.run_number }}