ci(fix): Re-tag images for the GitHub Container Registry

Images pushed to ghcr.io require a separate tag including the registry URL.
master
Joseph Hale 10 months ago committed by GitHub
parent d1d7b5c0bd
commit a093ccda48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,6 +24,8 @@ jobs:
run: echo -n $DOCKER_ACCESS_TOKEN | docker login $DOCKER_REGISTRY -u $DOCKER_USERNAME --password-stdin
- name: Push Image to DockerHub
run: docker push thehale/python-poetry:latest
- name: Tag the image for the GitHub Container Registry
run: docker tag thehale/python-poetry:latest ghcr.io/thehale/python-poetry:latest
- name: Login to GitHub Container Registry
run: echo -n ${{ secrets.GITHUB_TOKEN }} | docker login $GITHUB_CONTAINER_REGISTRY -u ${{ github.actor }} --password-stdin
- name: Push Image to GitHub Container Registry
@ -51,6 +53,8 @@ jobs:
- name: Push Image to DockerHub
run: docker push thehale/python-poetry:${{ matrix.poetry_version }}-py${{ matrix.python_image_tag }}
- name: Login to GitHub Container Registry
run: echo -n ${{ secrets.GITHUB_TOKEN }} | docker login $GITHUB_CONTAINER_REGISTRY -u ${{ github.actor }} --password-stdin
run: echo -n ${{ secrets.GITHUB_TOKEN }} | docker login $GITHUB_CONTAINER_REGISTRY -u ${{ github.actor }} --password-stdin
- name: Tag the image for the GitHub Container Registry
run: docker tag thehale/python-poetry:${{ matrix.poetry_version }}-py${{ matrix.python_image_tag }} ghcr.io/thehale/python-poetry:${{ matrix.poetry_version }}-py${{ matrix.python_image_tag }}
- name: Push Image to GitHub Container Registry
run: docker push ghcr.io/thehale/python-poetry:${{ matrix.poetry_version }}-py${{ matrix.python_image_tag }}

Loading…
Cancel
Save