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 }}