Skip to content

Commit

Permalink
ci(publish): now publishes with multiple tags
Browse files Browse the repository at this point in the history
additional tags of major version, mamajor + minor and latest
  • Loading branch information
Martin Reynolds committed Oct 11, 2019
1 parent ed753c6 commit 29819df
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,31 @@ jobs:
- name: Build the Docker image
run: docker build . --file Dockerfile --tag advancedcsg/action-jfrog-cli:latest
- name: Publish
if: steps.version.outputs.new-release-published == 'true'
uses: manusa/actions-publish-docker@master
if: steps.version.outputs.new-release-published == 'true'
with:
name: advancedcsg/action-jfrog-cli
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tag: ${{ steps.version.outputs.release-version }}
- uses: manusa/actions-publish-docker@master
if: steps.version.outputs.new-release-published == 'true'
with:
name: advancedcsg/action-jfrog-cli
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tag: ${{ steps.version.outputs.release-major }}
- uses: manusa/actions-publish-docker@master
if: steps.version.outputs.new-release-published == 'true'
with:
name: advancedcsg/action-jfrog-cli
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tag: ${{ steps.version.outputs.release-major }}.${{ steps.version.outputs.release-minor }}
- uses: manusa/actions-publish-docker@master
if: steps.version.outputs.new-release-published == 'true'
with:
name: advancedcsg/action-jfrog-cli
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tag: latest

0 comments on commit 29819df

Please sign in to comment.