Skip to content

Commit

Permalink
YQ-2609: add git tag before docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyisaev2 committed Dec 22, 2023
1 parent 1941c64 commit a3dce5d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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

0 comments on commit a3dce5d

Please sign in to comment.