Skip to content

Commit 84893dd

Browse files
committed
Migrate docker image hosting from docker.pkg.github.com to ghcr.io
docker.pkg.github.com is deprecated; also fixes the semver tag missing its v-prefix so it matches the tag action.yml actually pulls via github.action_ref, and updates the README's stale :main pull example.
1 parent 3bb4f53 commit 84893dd

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
- id: docker_meta
3838
uses: crazy-max/ghaction-docker-meta@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
3939
with:
40-
images: docker.pkg.github.com/appvia/githubUserManager/githubUserManager
40+
images: ghcr.io/appvia/githubusermanager
4141
flavor: |
4242
latest=true
4343
tags: |
4444
type=sha
45-
type=semver,pattern={{version}}
45+
type=semver,pattern=v{{version}}
4646
labels: |
4747
org.opencontainers.image.vendor=appvia
4848
org.opencontainers.image.documentation=https://github.com/appvia/githubUserManager
@@ -53,11 +53,11 @@ jobs:
5353
if: ${{ github.event_name != 'pull_request' }}
5454
uses: docker/login-action@c99871dec2022cc055c062a10cc1a1310835ceb4 # v4.3.0
5555
with:
56-
registry: docker.pkg.github.com
56+
registry: ghcr.io
5757
username: ${{ github.actor }}
5858
password: ${{ secrets.GITHUB_TOKEN }}
5959

60-
- name: Push to GitHub Packages
60+
- name: Push to ghcr.io
6161
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
6262
with:
6363
push: ${{ github.event_name != 'pull_request' }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ updates:
124124
#### Docker
125125
126126
1. Make an [env file](https://www.digitalocean.com/community/tutorials/how-to-read-and-set-environmental-and-shell-variables-on-linux) with the [below table](#Setup-environment-variables)
127-
1. `docker run --env-file .env docker.pkg.github.com/appvia/githubusermanager/githubusermanager:main`
127+
1. `docker run --env-file .env ghcr.io/appvia/githubusermanager:latest`
128128

129129
#### node/lambda/cloud run/ something else
130130

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ inputs:
5959
runs:
6060
using: "composite"
6161
steps:
62-
- name: Login to docker.pkg.github.com
62+
- name: Login to ghcr.io
6363
shell: bash
64-
run: echo ${PASSWORD} | docker login --username ${USERNAME} --password-stdin docker.pkg.github.com
64+
run: echo ${PASSWORD} | docker login --username ${USERNAME} --password-stdin ghcr.io
6565
env:
6666
USERNAME: ${{ inputs.github-actor }}
6767
PASSWORD: ${{ inputs.github-token }}
@@ -82,7 +82,7 @@ runs:
8282
-e SLACK_NOTIFY_ON_ERROR="$SLACK_NOTIFY_ON_ERROR" \
8383
-e SLACK_NOTIFY_ON_CHANGE="$SLACK_NOTIFY_ON_CHANGE" \
8484
-e SLACK_NOTIFY_ALWAYS="$SLACK_NOTIFY_ALWAYS" \
85-
docker.pkg.github.com/appvia/githubusermanager/githubusermanager:v1.0.5
85+
ghcr.io/appvia/githubusermanager:${{ github.action_ref }}
8686
shell: bash
8787
env:
8888
GOOGLE_EMAIL_ADDRESS: ${{ inputs.google-email-address }}

0 commit comments

Comments
 (0)