From a1ae3b8e249fd7d9d092b5075c56822fd0887036 Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Mon, 10 Feb 2020 13:46:55 +0100 Subject: [PATCH] Just get the tag name for building the docker image (#131) cf https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/td-p/31595 --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32a43889..3314c9e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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