@@ -28,21 +28,27 @@ jobs:
28
28
fi
29
29
- uses : docker/setup-qemu-action@v3
30
30
- uses : docker/setup-buildx-action@v3
31
+ - uses : docker/login-action@v3
32
+ with :
33
+ registry : ghcr.io
34
+ username : ${{ github.actor }}
35
+ password : ${{ github.token }}
36
+ - uses : docker/login-action@v3
37
+ with :
38
+ username : ${{ secrets.DOCKER_HUB_USER }}
39
+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
31
40
- uses : docker/metadata-action@v5
32
41
id : meta
33
42
with :
34
- images : ${{ github.repository_owner }}/emqx-operator-controller
43
+ images : |
44
+ ${{ github.repository_owner }}/emqx-operator-controller
45
+ ghcr.io/${{ github.repository_owner }}/emqx-operator-controller
35
46
tags : |
36
47
type=ref,event=branch
37
48
type=ref,event=pr
38
49
type=ref,event=tag
39
50
type=semver,pattern={{version}}
40
51
type=semver,pattern={{major}}.{{minor}}
41
- - uses : docker/login-action@v3
42
- if : startsWith(github.ref, 'refs/tags/')
43
- with :
44
- username : ${{ secrets.DOCKER_HUB_USER }}
45
- password : ${{ secrets.DOCKER_HUB_TOKEN }}
46
52
- uses : docker/build-push-action@v5
47
53
with :
48
54
platforms : linux/amd64,linux/arm64,linux/arm/v7
65
71
echo "::set-output name=prerelease::true"
66
72
fi
67
73
- uses : softprops/action-gh-release@v1
68
- if : startsWith(github.ref, 'refs/tags/')
69
74
with :
70
75
prerelease : ${{ steps.prerelease.outputs.prerelease }}
71
76
generate_release_notes : true
0 commit comments