|
42 | 42 | username: ${{ secrets.DOCKERHUB_USERNAME }} |
43 | 43 | password: ${{ secrets.DOCKERHUB_TOKEN }} |
44 | 44 |
|
| 45 | + # Push login to docker.io (default registry). Same creds as dhi.io, |
| 46 | + # but a separate registry endpoint so we can push the public image. |
| 47 | + - name: Login to Docker Hub (push) |
| 48 | + uses: docker/login-action@v4 |
| 49 | + with: |
| 50 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 51 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 52 | + |
45 | 53 | - name: Login to GHCR |
46 | 54 | uses: docker/login-action@v4 |
47 | 55 | with: |
|
53 | 61 | id: meta |
54 | 62 | uses: docker/metadata-action@v6 |
55 | 63 | with: |
56 | | - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
| 64 | + images: | |
| 65 | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
| 66 | + docker.io/${{ secrets.DOCKERHUB_USERNAME }}/reverse-proxy |
57 | 67 |
|
58 | 68 | # Build the per-arch image and push it by digest only. The "merge" |
59 | 69 | # job below stitches the digests into one multi-arch manifest. |
|
67 | 77 | labels: ${{ steps.meta.outputs.labels }} |
68 | 78 | cache-from: type=gha,scope=${{ matrix.platform }} |
69 | 79 | cache-to: type=gha,scope=${{ matrix.platform }},mode=max |
70 | | - outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true |
| 80 | + outputs: type=image,"name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},docker.io/${{ secrets.DOCKERHUB_USERNAME }}/reverse-proxy",push-by-digest=true,name-canonical=true,push=true |
71 | 81 |
|
72 | 82 | - name: Export digest |
73 | 83 | run: | |
@@ -109,11 +119,19 @@ jobs: |
109 | 119 | username: ${{ github.actor }} |
110 | 120 | password: ${{ secrets.GITHUB_TOKEN }} |
111 | 121 |
|
| 122 | + - name: Login to Docker Hub (push) |
| 123 | + uses: docker/login-action@v4 |
| 124 | + with: |
| 125 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 126 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 127 | + |
112 | 128 | - name: Extract image metadata |
113 | 129 | id: meta |
114 | 130 | uses: docker/metadata-action@v6 |
115 | 131 | with: |
116 | | - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
| 132 | + images: | |
| 133 | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
| 134 | + docker.io/${{ secrets.DOCKERHUB_USERNAME }}/reverse-proxy |
117 | 135 | tags: | |
118 | 136 | type=semver,pattern={{version}} |
119 | 137 | type=semver,pattern={{major}}.{{minor}} |
|
0 commit comments