Skip to content

Commit

Permalink
Just get the tag name for building the docker image (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe authored Feb 10, 2020
1 parent 516978e commit a1ae3b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: cd jacoco-cli; docker build . --file Dockerfile --tag ppiper/jacoco-cli:${GITHUB_REF}
run: cd jacoco-cli; docker build . --file Dockerfile --tag ppiper/jacoco-cli:${GITHUB_REF##*/}
- name: Push to Docker Hub
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USER }} --password-stdin
docker push ppiper/jacoco-cli:${GITHUB_REF}
docker push ppiper/jacoco-cli:${GITHUB_REF##*/}
rm -f /home/runner/.docker/config.json

0 comments on commit a1ae3b8

Please sign in to comment.