Skip to content

Commit

Permalink
Tag repo only after docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyisaev2 committed Dec 18, 2023
1 parent b86c324 commit 8aa198d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ jobs:
run: GOOS=linux go build -v -o fq-connector-go ./app
- name: Test
run: go test -v ./app/...
- name: Create tag
run: |
git tag ${{ github.event.inputs.tag }}
git push --tags
- name: Build and push Docker image
run: |
docker login --username vitalyisaev2 --password ${{ secrets.GHCR_TOKEN }} ghcr.io
docker build -t ghcr.io/ydb-platform/fq-connector-go:${{ github.event.inputs.tag }} .
docker push ghcr.io/ydb-platform/fq-connector-go:${{ github.event.inputs.tag }}
# other steps bellow as usual
- name: Create tag
run: |
git tag ${{ github.event.inputs.tag }}
git push --tags

0 comments on commit 8aa198d

Please sign in to comment.