From 787898375ff39c3490e037a2f8b2533c559a5d46 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 30 Jan 2021 17:45:19 +0100 Subject: [PATCH] Tag docker images after git tags (#6) --- .github/workflows/dockerhub.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 9a42c6b..6321ad6 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -6,13 +6,24 @@ name: Dockerhub Image on: push: branches: [ main ] - + tags: + - 'v*.*.*' + jobs: docker-build: runs-on: ubuntu-latest steps: + - + name: checkout + uses: actions/checkout@v2 + - + name: Docker meta + id: docker_meta + uses: crazy-max/ghaction-docker-meta@v1 + with: + images: dcaribou/transfermarkt-scraper - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -28,7 +39,7 @@ jobs: uses: docker/build-push-action@v2 with: push: true - tags: dcaribou/transfermarkt-scraper:latest + tags: ${{ steps.docker_meta.outputs.tags }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }}