Skip to content

Commit

Permalink
docker CI: proper metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Snawoot committed Oct 7, 2023
1 parent 11cf568 commit 6692489
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: docker-ci
on:
push:
tags:
- 'v*'
- 'v*.*.*'

jobs:
docker:
Expand All @@ -24,10 +24,19 @@ jobs:
commit-ish: 'HEAD'
skip-unshallow: 'true'
abbrev: 7
-
name: Compute Docker tag
id: docker_tag
run: echo "tag=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down

0 comments on commit 6692489

Please sign in to comment.