Skip to content

Commit 717db51

Browse files
committed
fix: use correct versioning
1 parent 9bbcada commit 717db51

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

‎.github/workflows/multi-arch.yaml‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: docker/login-action@v3
2424
with:
2525
registry: ${{ env.REGISTRY }}
26-
username: ${{ github.repository_owner }}
26+
username: red40-development
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Set up QEMU
@@ -36,16 +36,21 @@ jobs:
3636
id: meta
3737
uses: docker/metadata-action@v4
3838
with:
39-
images: ${{ env.REGISTRY }}/${{ github.repository }}
40-
41-
- name: Build and push controller docker image
39+
images: |
40+
red40-development/luacheck
41+
tags : |
42+
type=ref,event=branch
43+
type=ref,event=pr
44+
type=semver,pattern={{version}}
45+
type=semver,pattern={{major}}.{{minor}}
46+
47+
- name: Build and push docker image
4248
uses: docker/build-push-action@v5
4349
with:
4450
context: .
4551
platforms: linux/amd64,linux/arm64
46-
push: true
47-
tags: |
48-
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.repository }}:latest
49-
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.repository }}:v3
52+
push: ${{ github.event_name != 'pull_request' }}
53+
tags: ${{ steps.meta.outputs.tags }}
54+
labels: ${{ steps.meta.outputs.labels }}
5055
cache-from: type=gha
5156
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)