Skip to content

Commit dde5854

Browse files
Update workflow to release latest docker images too (#39)
* Update release workflow to add latest tag * Update release.yml
1 parent 6db0f9b commit dde5854

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ jobs:
2424
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
2525

2626
- name: Build & Push Docker Image
27-
uses: mr-smithers-excellent/docker-build-push@v2
27+
uses: docker/build-push-action@v1
2828
with:
2929
image: devshawn/kafka-gitops
30-
tag: ${{ steps.get_version.outputs.VERSION }}
30+
tags: ${{ steps.get_version.outputs.VERSION }},latest
3131
registry: docker.io
3232
username: ${{ secrets.DOCKER_USERNAME }}
3333
password: ${{ secrets.DOCKER_PASSWORD }}
34+
push: ${{ startsWith(github.ref, 'refs/tags/') }}
3435

3536
- name: Create Release
3637
id: create_release

0 commit comments

Comments
 (0)