Revert "Disable ghcr.io"

This reverts commit 3f27f6077f.
This commit is contained in:
Giuseppe Marino 2023-02-15 13:23:11 +01:00
parent e0ff7b35c7
commit baf5cf1d29
No known key found for this signature in database
GPG Key ID: C26F7A532ADEC25E

View File

@ -79,13 +79,13 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-buildx-${{ env.SAFE_ARCH }}- ${{ runner.os }}-buildx-${{ env.SAFE_ARCH }}-
# - name: Login to ghcr registry - name: Login to ghcr registry
# uses: docker/login-action@v2 uses: docker/login-action@v2
# if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
# with: with:
# registry: ghcr.io registry: ghcr.io
# username: ${{ secrets.GH_USERNAME }} username: ${{ secrets.GH_USERNAME }}
# password: ${{ secrets.GH_ACCESS_TOKEN }} password: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Login to Docker Hub registry - name: Login to Docker Hub registry
uses: docker/login-action@v2 uses: docker/login-action@v2
@ -157,12 +157,12 @@ jobs:
docker load --input image_linuxarm64/linuxarm64.tar docker load --input image_linuxarm64/linuxarm64.tar
docker load --input image_linuxppc64le/linuxppc64le.tar docker load --input image_linuxppc64le/linuxppc64le.tar
# - name: Login to ghcr registry - name: Login to ghcr registry
# uses: docker/login-action@v2 uses: docker/login-action@v2
# with: with:
# registry: ghcr.io registry: ghcr.io
# username: ${{ secrets.GH_USERNAME }} username: ${{ secrets.GH_USERNAME }}
# password: ${{ secrets.GH_ACCESS_TOKEN }} password: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Login to Docker Hub registry - name: Login to Docker Hub registry
uses: docker/login-action@v2 uses: docker/login-action@v2
@ -172,32 +172,32 @@ jobs:
- name: Create and push manifest - name: Create and push manifest
run: | run: |
# # -- Push to ghcr.io # -- Push to ghcr.io
# docker manifest create ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }} \ docker manifest create ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }} \
# --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linux386 \ --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linux386 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxamd64 \ --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxamd64 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarmv6 \ --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarmv6 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarmv7 \ --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarmv7 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarm64 \ --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarm64 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxppc64le --amend ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxppc64le
# docker manifest push ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }} docker manifest push ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}
#
# # Tag images as VERSION (like 'latest') # Tag images as VERSION (like 'latest')
# docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linux386 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linux386 docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linux386 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linux386
# docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxamd64 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxamd64 docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxamd64 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxamd64
# docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarmv6 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarmv6 docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarmv6 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarmv6
# docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarmv7 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarmv7 docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarmv7 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarmv7
# docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarm64 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarm64 docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxarm64 ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarm64
# docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxppc64le ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxppc64le docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linuxppc64le ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxppc64le
#
# docker manifest create ${{ env.IMAGE_TAG }}:${{ env.VERSION }} \ docker manifest create ${{ env.IMAGE_TAG }}:${{ env.VERSION }} \
# --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linux386 \ --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linux386 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxamd64 \ --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxamd64 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarmv6 \ --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarmv6 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarmv7 \ --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarmv7 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarm64 \ --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxarm64 \
# --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxppc64le --amend ${{ env.IMAGE_TAG }}:${{ env.VERSION }}-linuxppc64le
# docker manifest push ${{ env.IMAGE_TAG }}:${{ env.VERSION }} docker manifest push ${{ env.IMAGE_TAG }}:${{ env.VERSION }}
# -- Push to Docker Hub # -- Push to Docker Hub
docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linux386 ${{ env.IMAGE_TAG_DH }}:${{ env.VERSION }}-linux386 docker tag ${{ env.IMAGE_TAG }}:${{ env.HASH_VERSION }}-linux386 ${{ env.IMAGE_TAG_DH }}:${{ env.VERSION }}-linux386