From a3dce5dde9ceba44be4a05b9b772139fc6d69fce Mon Sep 17 00:00:00 2001 From: Vitaly Isaev Date: Fri, 22 Dec 2023 11:55:19 +0000 Subject: [PATCH] YQ-2609: add git tag before docker build --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42231e19..a0adaca6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,10 @@ on: jobs: release: runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.21.3', ] + steps: - name: Fail if branch is not main if: github.ref != 'refs/heads/main' @@ -22,6 +26,10 @@ jobs: run: | echo "This workflow should be triggered only by repository admins" exit 1 + - name: Create and push Git tag + run: | + git tag ${{ github.event.inputs.tag }} + git push --tags - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -43,7 +51,3 @@ jobs: docker tag ghcr.io/ydb-platform/fq-connector-go:${{ github.event.inputs.tag }} ghcr.io/ydb-platform/fq-connector-go:latest docker push ghcr.io/ydb-platform/fq-connector-go:${{ github.event.inputs.tag }} docker push ghcr.io/ydb-platform/fq-connector-go:latest - - name: Create and push Git tag - run: | - git tag ${{ github.event.inputs.tag }} - git push --tags