@@ -26,12 +26,19 @@ jobs:
26
26
restore-keys : |
27
27
${{ runner.os }}-buildxarch-
28
28
29
- - name : Login to DockerHub
29
+ - name : Docker Login to DockerHub
30
30
uses : docker/login-action@v1
31
31
with :
32
32
username : ${{ secrets.DOCKER_HUB_USERNAME }}
33
33
password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
34
34
35
+ - name : Docker Login to GitHub Container Registry
36
+ uses : docker/login-action@v1
37
+ with :
38
+ registry : ghcr.io
39
+ username : ${{ secrets.DOCKER_GITHUB_USERNAME }}
40
+ password : ${{ secrets.DOCKER_GITHUB_PAT }}
41
+
35
42
# the arm64 is of course much slower due to qemu, so build and push amd64 **first**
36
43
# due to the way manifests work, the gap between this and the complete push below
37
44
# could result in pull failures or inconsistencies for arm64, such is life.
46
53
context : .
47
54
file : ./Dockerfile
48
55
platforms : linux/amd64
49
- tags : rpardini/docker-registry-proxy:latest
56
+ tags : rpardini/docker-registry-proxy:latest,ghcr.io/rpardini/docker-registry-proxy:latest
50
57
push : true
51
58
cache-from : type=local,src=/tmp/.buildx-cache/release
52
59
cache-to : type=local,mode=max,dest=/tmp/.buildx-cache/release
61
68
context : .
62
69
file : ./Dockerfile
63
70
platforms : linux/amd64
64
- tags : rpardini/docker-registry-proxy:latest-debug
71
+ tags : rpardini/docker-registry-proxy:latest-debug,ghcr.io/rpardini/docker-registry-proxy:latest-debug
65
72
push : true
66
73
cache-from : type=local,src=/tmp/.buildx-cache/debug
67
74
cache-to : type=local,mode=max,dest=/tmp/.buildx-cache/debug
0 commit comments