Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docker/metadata-action GitHub Action #216

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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