-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache docker images to Google Container Registry (#250)
For now, we still rely on logged-in users to manually push a new version of the image when dependencies change, in the future we should automate that too. CI and other users can already rely on those images to avoid rebuilding the images locally every time, since the Registry is set to allow public access.
- Loading branch information
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script can be used by anyone, including CI, to pull a version of the image from Google | ||
# Container Registry, which should allow download public downloads. | ||
# See https://pantheon.corp.google.com/gcr/settings?project=oak-ci&folder&organizationId=433637338589 | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o xtrace | ||
|
||
# See https://pantheon.corp.google.com/gcr/images/oak-ci/GLOBAL/oak | ||
readonly DOCKER_IMAGE_NAME='gcr.io/oak-ci/oak' | ||
|
||
docker pull "$DOCKER_IMAGE_NAME:latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script should be used by logged-in users with write access to the Google Container Registry | ||
# to push a new version of the image. | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o xtrace | ||
|
||
# See https://pantheon.corp.google.com/gcr/images/oak-ci/GLOBAL/oak | ||
readonly DOCKER_IMAGE_NAME='gcr.io/oak-ci/oak' | ||
|
||
docker push "$DOCKER_IMAGE_NAME:latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters