From ef12d46431ab64164dee0d2562765192495ee686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20S=C3=A1nchez?= Date: Sat, 24 Oct 2020 10:40:20 +0200 Subject: [PATCH] Create docker image on release --- .github/workflows/docker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d7932e7..e3337df 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,6 +3,8 @@ name: Docker on: push: branches: [ master ] + release: + types: [ created ] jobs: build: @@ -15,7 +17,7 @@ jobs: uses: docker/setup-buildx-action@v1 - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} @@ -24,4 +26,4 @@ jobs: uses: docker/build-push-action@v2 with: push: true - tags: esanchezm/prometheus-qbittorrent-exporter:latest + tags: esanchezm/prometheus-qbittorrent-exporter:latest,esanchezm/prometheus-qbittorrent-exporter:$GITHUB_REF