6
6
tag :
7
7
required : true
8
8
type : string
9
+ tags :
10
+ required : false
11
+ type : string
9
12
secrets :
10
13
DOCKERHUB_USERNAME :
11
14
required : true
@@ -19,13 +22,19 @@ jobs:
19
22
- name : Checkout repository
20
23
uses : actions/checkout@v3
21
24
22
- - name : Log in to the Container registry
25
+ - name : Log in to the Container registry (ghcr.io)
23
26
uses : docker/login-action@v2
24
27
with :
25
28
registry : ghcr.io
26
29
username : ${{ github.actor }}
27
30
password : ${{ secrets.GITHUB_TOKEN }}
28
31
32
+ - name : Log in to the Container registry (dockerhub)
33
+ uses : docker/login-action@v2
34
+ with :
35
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
36
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
37
+
29
38
- name : Set up QEMU
30
39
uses : docker/setup-qemu-action@v2
31
40
@@ -37,13 +46,16 @@ jobs:
37
46
echo "__version__ = \"${{ inputs.tag }}\"" > ./mealie/__init__.py
38
47
39
48
- name : Build and push Docker image
40
- uses : docker/build-push-action@v4
49
+ uses : docker/build-push-action@v5
41
50
with :
42
51
file : ./docker/Dockerfile
43
52
context : .
44
53
platforms : linux/amd64,linux/arm64
45
54
push : true
46
- tags : ghcr.io/${{ github.repository }}:${{ inputs.tag }}
55
+ tags : |
56
+ hkotel/mealie:${{ inputs.tag }}
57
+ ghcr.io/${{ github.repository }}:${{ inputs.tag }}
58
+ ${{ inputs.tags }}
47
59
build-args : |
48
60
COMMIT=${{ github.sha }}
49
61
# https://docs.docker.com/build/ci/github-actions/cache/#github-cache
0 commit comments