|
65 | 65 | - name: Set tags |
66 | 66 | run: | |
67 | 67 | if [ -z "$TAG" ]; then |
68 | | - echo "TAG=-t openremote/postgresql:develop" >> $GITHUB_ENV |
| 68 | + echo "TAG=-t openremote/postgresql:develop-amd64" >> $GITHUB_ENV |
69 | 69 | else |
70 | | - echo "TAG=-t openremote/postgresql:latest -t openremote/postgresql:$TAG" >> $GITHUB_ENV |
| 70 | + echo "TAG=-t openremote/postgresql:$TAG-amd64" >> $GITHUB_ENV |
71 | 71 | fi |
72 | 72 | env: |
73 | 73 | TAG: ${{ github.event.release.tag_name }} |
@@ -144,9 +144,9 @@ jobs: |
144 | 144 | - name: Set tags |
145 | 145 | run: | |
146 | 146 | if [ -z "$TAG" ]; then |
147 | | - echo "TAG=-t openremote/postgresql:develop" >> $GITHUB_ENV |
| 147 | + echo "TAG=-t openremote/postgresql:develop-arm64" >> $GITHUB_ENV |
148 | 148 | else |
149 | | - echo "TAG=-t openremote/postgresql:latest -t openremote/postgresql:$TAG" >> $GITHUB_ENV |
| 149 | + echo "TAG=-t openremote/postgresql:$TAG-arm64" >> $GITHUB_ENV |
150 | 150 | fi |
151 | 151 | env: |
152 | 152 | TAG: ${{ github.event.release.tag_name }} |
@@ -180,3 +180,36 @@ jobs: |
180 | 180 | --no-cache-filter trimmed \ |
181 | 181 | --no-cache-filter trimmed-all \ |
182 | 182 | $TAG . |
| 183 | +
|
| 184 | + create_manifest: |
| 185 | + needs: [image_postgresql_amd64, image_postgresql_arm64] |
| 186 | + runs-on: ubuntu-latest |
| 187 | + |
| 188 | + steps: |
| 189 | + - name: Set tags |
| 190 | + run: | |
| 191 | + if [ -z "$TAG" ]; then |
| 192 | + echo "TAG=openremote/postgresql:develop" >> $GITHUB_ENV |
| 193 | + echo "TAG_AMD64=openremote/postgresql:develop-amd64" >> $GITHUB_ENV |
| 194 | + echo "TAG_ARM64=openremote/postgresql:develop-arm64" >> $GITHUB_ENV |
| 195 | + else |
| 196 | + echo "TAG=openremote/postgresql:$TAG" >> $GITHUB_ENV |
| 197 | + echo "TAG_LATEST=openremote/postgresql:latest" >> $GITHUB_ENV |
| 198 | + echo "TAG_AMD64=openremote/postgresql:$TAG-amd64" >> $GITHUB_ENV |
| 199 | + echo "TAG_ARM64=openremote/postgresql:$TAG-arm64" >> $GITHUB_ENV |
| 200 | + fi |
| 201 | + env: |
| 202 | + TAG: ${{ github.event.release.tag_name }} |
| 203 | + |
| 204 | + - name: Login to DockerHub |
| 205 | + uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef |
| 206 | + with: |
| 207 | + username: ${{ secrets._TEMP_DOCKERHUB_USER }} |
| 208 | + password: ${{ secrets._TEMP_DOCKERHUB_PASSWORD }} |
| 209 | + |
| 210 | + - name: Create and push multi-arch manifest |
| 211 | + run: | |
| 212 | + docker buildx imagetools create -t $TAG $TAG_AMD64 $TAG_ARM64 |
| 213 | + if [ ! -z "$TAG_LATEST" ]; then |
| 214 | + docker buildx imagetools create -t $TAG_LATEST $TAG_AMD64 $TAG_ARM64 |
| 215 | + fi |
0 commit comments