diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e3337df..3e7d3e9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,6 +15,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + + - name: Extract branch name + shell: bash + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: extract_branch - name: Login to DockerHub uses: docker/login-action@v1 @@ -26,4 +31,4 @@ jobs: uses: docker/build-push-action@v2 with: push: true - tags: esanchezm/prometheus-qbittorrent-exporter:latest,esanchezm/prometheus-qbittorrent-exporter:$GITHUB_REF + tags: esanchezm/prometheus-qbittorrent-exporter:latest,esanchezm/prometheus-qbittorrent-exporter:${{ steps.extract_branch.outputs.branch }}