Skip to content

Commit

Permalink
Update containers to the latest release SHAs
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Feb 24, 2022
1 parent 246027a commit a213598
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
9 changes: 7 additions & 2 deletions __tests__/docker-tags.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import {UPDATER_IMAGE_NAME, PROXY_IMAGE_NAME} from '../src/docker-tags'
import {getImageName} from '../src/update-containers'

describe('Docker tags', () => {
test('UPDATER_IMAGE_NAME', () => {
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}$/
)

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

test('PROXY_IMAGE_NAME', () => {
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}$/
)

expect(PROXY_IMAGE_NAME).toEqual(getImageName('Dockerfile.proxy'))
})
})
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:79b4f9cd5cd93062ee3403c71bbc5ca1939b8fc27f88cf705d6604b738b0c907
FROM docker.pkg.github.com/github/dependabot-update-job-proxy@sha256:208134c602d749400c050b03469dbe6d38af64363492f0f70ea5aba916f32ff9
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:58e10e8dad0e79c532fe439161857c09da0ce4f8bbabbe216cd87dd35a39573b
FROM docker.pkg.github.com/dependabot/dependabot-updater@sha256:3d6c07043f4f2baf32047634a00a6581cf1124f12a30dcc859ab128f24333a3a
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:79b4f9cd5cd93062ee3403c71bbc5ca1939b8fc27f88cf705d6604b738b0c907",
"updater": "docker.pkg.github.com/dependabot/dependabot-updater@sha256:58e10e8dad0e79c532fe439161857c09da0ce4f8bbabbe216cd87dd35a39573b"
"proxy": "docker.pkg.github.com/github/dependabot-update-job-proxy@sha256:208134c602d749400c050b03469dbe6d38af64363492f0f70ea5aba916f32ff9",
"updater": "docker.pkg.github.com/dependabot/dependabot-updater@sha256:3d6c07043f4f2baf32047634a00a6581cf1124f12a30dcc859ab128f24333a3a"
}
2 changes: 1 addition & 1 deletion src/update-containers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs'

function getImageName(dockerfileName: string): String {
export function getImageName(dockerfileName: string): String {
const dockerfile = fs.readFileSync(
require.resolve(`../docker/${dockerfileName}`),
'utf8'
Expand Down

0 comments on commit a213598

Please sign in to comment.