From bc64ec0bc707d5ff353b9574324ca324aff2f7dc Mon Sep 17 00:00:00 2001 From: Adrien Joly <531781+adrienjoly@users.noreply.github.com> Date: Sun, 5 Apr 2020 20:23:19 +0200 Subject: [PATCH] fix(release): attempt to publish tags on docker hub (#320) Follow up for PR #306, based on suggestions from https://github.com/jerray/publish-docker-action/issues/11#issuecomment-607077257 --- .github/workflows/nodejs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 060c11b92..79bcb7d64 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 }} +