Cache Google Chrome deb with generic packages rather than AWS

We currently cache Google Chrome deb files in AWS. Since GitLab 14.8
Generic Packages have become generally available. So in order to remove
the dependency on AWS and to dogfood the feature, we are going to cache
the Google Chrome deb files with GitLab

https://docs.gitlab.com/ee/user/packages/generic_packages/
This commit is contained in:
Lukas Eipert 2022-02-22 10:00:31 +01:00
parent 6bb7cc091f
commit a9c5fa7b10
4 changed files with 37 additions and 30 deletions

View file

@ -23,14 +23,12 @@ variables:
DOCKER_HOST: tcp://docker:2375
cache-google-chrome:
image: ubuntu:16.04
stage: automation
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Starts the job immediately
needs: []
variables:
MOUNT_POINT: /builds/$CI_PROJECT_PATH/mnt
script:
- mkdir -p "$MOUNT_POINT"
- cp scripts/cache-google-chrome $MOUNT_POINT
- docker run -e "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" -e "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY" -v "$MOUNT_POINT:/mnt" ubuntu:16.04 /mnt/cache-google-chrome
- bash ./scripts/cache-google-chrome
# disable DinD
before_script: []
services: []