diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b650a163..587b9f46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,13 @@ name: CI on: - push + push: + branches: + - '**' + tags: + - '**' + pull_request: + branches: + - '**' jobs: build: @@ -15,12 +22,21 @@ jobs: - name: Docker meta id: docker_meta - uses: crazy-max/ghaction-docker-meta@v1 + uses: docker/metadata-action@v3 with: images: mormahr/pdf-service - tag-sha: false - tag-custom: ${{ github.sha }} - label-custom: | + flavor: | + latest=auto + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=ref,event=tag + type=ref,event=branch + type=ref,event=pr + type=edge,branch=main + type=sha,format=long + labels: | org.opencontainers.image.vendor=Moritz Mahringer - name: Login to DockerHub