Skip to content

Commit

Permalink
ci(fix): Re-tag images for the GitHub Container Registry
Browse files Browse the repository at this point in the history
Images pushed to ghcr.io require a separate tag including the registry URL.
  • Loading branch information
thehale authored Jul 10, 2023
1 parent d1d7b5c commit a093ccd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit a093ccd

Please sign in to comment.