Skip to content

Commit

Permalink
Tag docker images after git tags (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaribou authored Jan 30, 2021
1 parent b2f59bf commit 7878983
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 7878983

Please sign in to comment.