From 46282670c879f8f9f2556fbc78438306894f8385 Mon Sep 17 00:00:00 2001 From: Markus Ressel Date: Wed, 18 Mar 2020 21:48:41 +0100 Subject: [PATCH] docker release fix --- .github/workflows/dockerimage-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dockerimage-release.yml b/.github/workflows/dockerimage-release.yml index e993378..4044ad9 100644 --- a/.github/workflows/dockerimage-release.yml +++ b/.github/workflows/dockerimage-release.yml @@ -10,9 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + # this writes the tag name into GIT_TAG_NAME + - name: Get tag name + uses: olegtarasov/get-tag@v2 - name: Build the Docker image - run: docker build . --file Dockerfile --tag markusressel/keel-telegram-bot:${{ github.ref }} + run: docker build . --file Dockerfile --tag markusressel/keel-telegram-bot:${{ GIT_TAG_NAME }} - name: Login to DockerHub Registry run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin - name: Push the Docker image - run: docker push markusressel/keel-telegram-bot:${{ github.ref }} + run: docker push markusressel/keel-telegram-bot:${{ GIT_TAG_NAME }}