Skip to content

Commit

Permalink
fix(release): attempt to publish tags on docker hub (#320)
Browse files Browse the repository at this point in the history
Follow up for PR #306, based on suggestions from jerray/publish-docker-action#11 (comment)
  • Loading branch information
adrienjoly committed Apr 5, 2020
1 parent 9bf0e60 commit bc64ec0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/nodejs.yml
Expand Up @@ -143,10 +143,15 @@ jobs:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm run semantic-release
- id: create_docker_tags
run: |
echo "::set-output name=tags::latest,$(git tag -l --sort=-v:refname | head -1 | cut -c 2-)"
# from https://github.com/jerray/publish-docker-action/issues/11#issuecomment-607077257
- name: Publish to Docker Hub registry
if: github.event_name == 'push'
uses: jerray/publish-docker-action@v1.0.3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
auto_tag: true
tags: ${{ steps.create_docker_tags.outputs.tags }}

0 comments on commit bc64ec0

Please sign in to comment.