|
32 | 32 | run: |
|
33 | 33 | git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
34 | 34 |
|
| 35 | + - name: Login to Docker Hub |
| 36 | + if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release') |
| 37 | + uses: docker/login-action@v3 |
| 38 | + with: |
| 39 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 40 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 41 | + |
35 | 42 | - name: Set up Docker Buildx
|
36 | 43 | uses: docker/setup-buildx-action@v3
|
37 | 44 |
|
|
43 | 50 | platforms: ${{ matrix.arch.platform }}
|
44 | 51 | cache-from: type=gha
|
45 | 52 | cache-to: type=gha,mode=max
|
46 |
| - outputs: type=image,name=${{ env.REGISTRY_NODE_IMAGE }},push-by-digest=true,name-canonical=true,push=false |
| 53 | + outputs: type=image,name=${{ env.REGISTRY_NODE_IMAGE }},push-by-digest=true,name-canonical=true,push=true |
47 | 54 |
|
48 | 55 | - name: Export digest
|
49 | 56 | run: |
|
|
81 | 88 | - name: Git checkout
|
82 | 89 | uses: actions/checkout@v5
|
83 | 90 |
|
| 91 | + - name: Login to Docker Hub |
| 92 | + if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release') |
| 93 | + uses: docker/login-action@v3 |
| 94 | + with: |
| 95 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 96 | + password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 97 | + |
84 | 98 | - name: Set up Docker Buildx
|
85 | 99 | uses: docker/setup-buildx-action@v3
|
86 | 100 |
|
|
94 | 108 | BUILD_CONFIGURATION=${{ matrix.configuration.build_configuration }}
|
95 | 109 | cache-from: type=gha
|
96 | 110 | cache-to: type=gha,mode=max
|
97 |
| - outputs: type=image,name=${{ env.REGISTRY_FRONTEND_IMAGE }},push-by-digest=true,name-canonical=true,push=false |
| 111 | + outputs: type=image,name=${{ env.REGISTRY_FRONTEND_IMAGE }},push-by-digest=true,name-canonical=true,push=true |
98 | 112 |
|
99 | 113 | - name: Export digest
|
100 | 114 | run: |
|
|
0 commit comments