Skip to content

Commit

Permalink
Switch Docker image source from Docker Hub to GHCR
Browse files Browse the repository at this point in the history
- search/replace most image references
  - we're fortunate that hadolint is mirrored both places already
- replace direct upstream reference for "latest" `golang` image
  with our "mirror" image which is a very lightly touched
  variation of that image (mostly metadata tweaks)

refs GH-210
  • Loading branch information
atc0005 committed Feb 3, 2022
1 parent c07f174 commit 436b8da
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint-and-build-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
experimental: true

container:
image: "index.docker.io/atc0005/go-ci:${{ matrix.container-image}}"
image: "ghcr.io/atc0005/go-ci:${{ matrix.container-image}}"

steps:
- name: Check out code
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
container-image: ["go-ci-oldstable", "go-ci-stable", "go-ci-unstable"]

container:
image: "index.docker.io/atc0005/go-ci:${{ matrix.container-image}}"
image: "ghcr.io/atc0005/go-ci:${{ matrix.container-image}}"

steps:
- name: Check out code
Expand All @@ -85,7 +85,7 @@ jobs:
container-image: ["go-ci-oldstable", "go-ci-stable", "go-ci-unstable"]

container:
image: "index.docker.io/atc0005/go-ci:${{ matrix.container-image}}"
image: "ghcr.io/atc0005/go-ci:${{ matrix.container-image}}"

steps:
- name: Print go version
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/lint-and-build-using-make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
# Default: 360 minutes
timeout-minutes: 10
container:
image: "index.docker.io/golang:latest"
# Use (lightly touched) mirror of current "vanilla" upstream golang image
image: "ghcr.io/atc0005/go-ci:go-ci-stable-mirror-build"

steps:
- name: Print go version
Expand Down Expand Up @@ -58,7 +59,8 @@ jobs:
# Default: 360 minutes
timeout-minutes: 10
container:
image: "index.docker.io/golang:latest"
# Use (lightly touched) mirror of current "vanilla" upstream golang image
image: "ghcr.io/atc0005/go-ci:go-ci-stable-mirror-build"

steps:
- name: Print go version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-test-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
container:
image: index.docker.io/atc0005/go-ci:go-ci-lint-only
image: ghcr.io/atc0005/go-ci:go-ci-lint-only

steps:
- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-docker-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
container:
image: index.docker.io/hadolint/hadolint:latest-debian
image: ghcr.io/hadolint/hadolint:latest-debian

steps:
- name: Check out code
Expand Down

0 comments on commit 436b8da

Please sign in to comment.