Save chrome and chromium deb files in package registry

This commit is contained in:
Andrejs Cunskis 2022-08-21 21:32:51 +03:00
parent fad37f305c
commit 941883094a
No known key found for this signature in database
GPG key ID: 87CB75083F227241
5 changed files with 122 additions and 74 deletions

View file

@ -30,3 +30,23 @@
variables:
PUSH_CUSTOM_IMAGE: "true"
BASE_BUILD_REGISTRY_IMAGE: $CI_REGISTRY_IMAGE
.cache-google-chrome:
stage: automation
needs: []
before_script:
- docker buildx create --use
script:
- |
docker buildx build \
--build-arg CI_API_V4_URL=$CI_API_V4_URL \
--build-arg CI_PROJECT_ID=$CI_PROJECT_ID \
--build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN \
--platform linux/amd64,linux/arm64 \
-f "Dockerfile.cache-chrome" \
.
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_SERVER_HOST == "gitlab.com"'
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_SERVER_HOST == "gitlab.com"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_SERVER_HOST == "gitlab.com"'
when: manual