Compare commits

...

2 Commits

Author SHA1 Message Date
Joseph Hale a093ccda48
ci(fix): Re-tag images for the GitHub Container Registry
Images pushed to ghcr.io require a separate tag including the registry URL.
10 months ago
Joseph Hale d1d7b5c0bd
feat: Mirror images to GitHub Container Registry
All docker-python-poetry images are now available on both DockerHub and the GitHub Container Registry.
10 months ago

@ -8,6 +8,7 @@ env:
DOCKER_REGISTRY: ${{secrets.DOCKER_REGISTRY}}
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_ACCESS_TOKEN: ${{secrets.DOCKER_ACCESS_TOKEN}}
GITHUB_CONTAINER_REGISTRY: ghcr.io
jobs:
@ -23,6 +24,12 @@ 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
run: docker push ghcr.io/thehale/python-poetry:latest
build-versions:
@ -45,3 +52,9 @@ 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:${{ 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
- 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