platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.event_name == 'schedule' }}
- outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
+ outputs: type=image,name=ghcr.io/${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
run: |
id: meta
uses: docker/metadata-action@v5
with:
- images: ${{ env.REGISTRY_IMAGE }}
+ images: ghcr.io/${{ env.REGISTRY_IMAGE }}
- name: Login to Docker Hub
uses: docker/login-action@v3
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Create manifest list and push
+ - name: Create manifest list and push to ghcr.io
working-directory: /tmp/digests
run: |
- docker buildx imagetools create -t ${{ env.REGISTRY_IMAGE }}:master-${{ matrix.ubuntu_version }} \
- $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
docker buildx imagetools create -t ghcr.io/${{ env.REGISTRY_IMAGE }}:master-${{ matrix.ubuntu_version }} \
- $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
+ $(printf 'ghcr.io/${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
+
+ - name: Create manifest list and push to DockerHub
+ working-directory: /tmp/digests
+ run: |
+ docker buildx imagetools create -t ${{ env.REGISTRY_IMAGE }}:master-${{ matrix.ubuntu_version }} \
+ $(printf 'ghcr.io/${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
- name: Inspect image
run: |