mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Cache Google Chrome deb with generic packages rather than AWS
This commit is contained in:
parent
6bb7cc091f
commit
e951d1ab82
4 changed files with 37 additions and 30 deletions
|
|
@ -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: []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue