Skip to content

Commit

Permalink
Extended tagging for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
mormahr committed Aug 19, 2021
1 parent d6e60a0 commit aad8d7a
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: CI
on:
push
push:
branches:
- '**'
tags:
- '**'
# pull_request:
# branches:
# - '**'

jobs:
build:
Expand All @@ -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
Expand Down

0 comments on commit aad8d7a

Please sign in to comment.