Skip to content

Commit

Permalink
Merge pull request #216 from zazuko/ci-docker-image
Browse files Browse the repository at this point in the history
Use `docker/metadata-action` GitHub Action
  • Loading branch information
ludovicm67 authored Dec 5, 2023
2 parents af66347 + b8a1cbb commit 2be9954
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build and push Docker image

on:
push:
branches:
- main
tags:
- "trifid@*.*.*"

Expand Down Expand Up @@ -33,11 +35,19 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
uses: zazuko/action-docker-meta@main
id: docker_meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/zazuko/trifid,zazuko/trifid
strip-tag-prefix: "trifid@"
images: |
ghcr.io/zazuko/trifid
zazuko/trifid
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=semver,prefix=trifid@,pattern={{version}}
type=semver,prefix=trifid@,pattern={{major}}.{{minor}}
type=semver,prefix=trifid@,pattern={{major}}
type=sha
- name: Build and push Docker images
id: docker_build
Expand Down

0 comments on commit 2be9954

Please sign in to comment.