Skip to content

Commit

Permalink
One more time
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Aug 19, 2021
1 parent 940aff0 commit 49e0285
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract branch name
shell: bash
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
- name: Docker Build and Docker Push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
# According to https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release `$GITHUB_REF` is going to be the tag of the release
tags: singlespa/import-map-deployer:$(git describe),singlespa/import-map-deployer:latest
tags: singlespa/import-map-deployer:${env.BRANCH_NAME},singlespa/import-map-deployer:latest

0 comments on commit 49e0285

Please sign in to comment.