Skip to content

Commit

Permalink
Switch from GHPR to GHCR for images
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Mar 18, 2022
1 parent 13a5b47 commit ab30b98
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions __tests__/docker-tags.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ import {getImageName} from '../src/update-containers'
describe('Docker tags', () => {
test('UPDATER_IMAGE_NAME uses a pinned version and matches the config Dockerfile', () => {
expect(UPDATER_IMAGE_NAME).toMatch(
/^docker\.pkg\.github\.com\/dependabot\/dependabot-updater@sha256:[a-zA-Z0-9]{64}$/
/^ghcr\.io\/dependabot\/dependabot-updater\/dependabot-updater@sha256:[a-zA-Z0-9]{64}$/
)

expect(UPDATER_IMAGE_NAME).toEqual(getImageName('Dockerfile.updater'))
})

test('PROXY_IMAGE_NAME uses a pinned version and matches the config Dockerfile', () => {
expect(PROXY_IMAGE_NAME).toMatch(
/^docker\.pkg\.github\.com\/github\/dependabot-update-job-proxy@sha256:[a-zA-Z0-9]{64}$/
/^ghcr\.io\/github\/dependabot-update-job-proxy\/dependabot-update-job-proxy@sha256:[a-zA-Z0-9]{64}$/
)

expect(PROXY_IMAGE_NAME).toEqual(getImageName('Dockerfile.proxy'))
})

test('repositoryName returns the image name minus the tagged version or reference for our real values', () => {
expect(repositoryName(UPDATER_IMAGE_NAME)).toMatch(
'docker.pkg.github.com/dependabot/dependabot-updater'
'ghcr.io/dependabot/dependabot-updater/dependabot-updater'
)

expect(repositoryName(PROXY_IMAGE_NAME)).toMatch(
'docker.pkg.github.com/github/dependabot-update-job-proxy'
'ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy'
)
})

Expand Down
2 changes: 1 addition & 1 deletion dist/cleanup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docker/Dockerfile.proxy
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM docker.pkg.github.com/github/dependabot-update-job-proxy@sha256:21ca670ef8ef375e4168be3e1cedfe1a165724314299e147303cbeae57d6ba3c
FROM ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy@sha256:21ca670ef8ef375e4168be3e1cedfe1a165724314299e147303cbeae57d6ba3c
2 changes: 1 addition & 1 deletion docker/Dockerfile.updater
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM docker.pkg.github.com/dependabot/dependabot-updater@sha256:2b7f7c1905471943879183e67e0ec6b083184824f5ee608852e318a0181dc133
FROM ghcr.io/dependabot/dependabot-updater/dependabot-updater@sha256:2b7f7c1905471943879183e67e0ec6b083184824f5ee608852e318a0181dc133
4 changes: 2 additions & 2 deletions docker/containers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"proxy": "docker.pkg.github.com/github/dependabot-update-job-proxy@sha256:21ca670ef8ef375e4168be3e1cedfe1a165724314299e147303cbeae57d6ba3c",
"updater": "docker.pkg.github.com/dependabot/dependabot-updater@sha256:2b7f7c1905471943879183e67e0ec6b083184824f5ee608852e318a0181dc133"
"proxy": "ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy@sha256:21ca670ef8ef375e4168be3e1cedfe1a165724314299e147303cbeae57d6ba3c",
"updater": "ghcr.io/dependabot/dependabot-updater/dependabot-updater@sha256:2b7f7c1905471943879183e67e0ec6b083184824f5ee608852e318a0181dc133"
}

0 comments on commit ab30b98

Please sign in to comment.