Skip to content
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
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CI
on:
push:
branches: [main]
tags:
- "*"
pull_request:
schedule:
- cron: "0 0 * * *"
Expand Down Expand Up @@ -34,22 +36,15 @@ jobs:
- uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v6
with:
images: ghcr.io/${{ env.IMAGE_NAME }},docker.io/${{ env.IMAGE_NAME }}
tags: type=sha,prefix=
flavor: latest=true
- name: Build
uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64, linux/arm64, linux/arm
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
VERSION=${{ github.sha }}

test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -98,7 +93,10 @@ jobs:
uses: docker/metadata-action@v6
with:
images: ghcr.io/${{ env.IMAGE_NAME }},docker.io/${{ env.IMAGE_NAME }}
tags: type=sha,prefix=
tags: |
type=sha,prefix=
type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}}
flavor: latest=true
- name: Build and push
id: push
Expand Down
Loading