Cache Google Chrome deb with generic packages rather than AWS

This commit is contained in:
Lukas 'Eipi' Eipert 2022-02-22 15:49:54 +00:00 committed by Stan Hu
parent 6bb7cc091f
commit e951d1ab82
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: debian:bullseye-slim
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: []