Commit 6ae36ec8 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use dependency proxy to pull images from DockerHub

This should improve latency and throughput
parent c8141f4c
cloud-native-image: cloud-native-image:
extends: .cng:rules extends: .cng:rules
image: ruby:2.7-alpine image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7-alpine
dependencies: [] dependencies: []
stage: post-test stage: post-test
variables: variables:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
extends: extends:
- .default-retry - .default-retry
- .docs:rules:review-docs - .docs:rules:review-docs
image: ruby:2.7-alpine image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7-alpine
stage: review stage: review
needs: [] needs: []
variables: variables:
......
...@@ -259,13 +259,13 @@ coverage-frontend: ...@@ -259,13 +259,13 @@ coverage-frontend:
qa-frontend-node:10: qa-frontend-node:10:
extends: .qa-frontend-node extends: .qa-frontend-node
image: node:dubnium image: ${GITLAB_DEPENDENCY_PROXY}node:dubnium
qa-frontend-node:latest: qa-frontend-node:latest:
extends: extends:
- .qa-frontend-node - .qa-frontend-node
- .frontend:rules:qa-frontend-node-latest - .frontend:rules:qa-frontend-node-latest
image: node:latest image: ${GITLAB_DEPENDENCY_PROXY}node:latest
webpack-dev-server: webpack-dev-server:
extends: extends:
......
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
FOSS_ONLY: '1' FOSS_ONLY: '1'
.use-docker-in-docker: .use-docker-in-docker:
image: docker:${DOCKER_VERSION} image: ${GITLAB_DEPENDENCY_PROXY}docker:${DOCKER_VERSION}
services: services:
- docker:${DOCKER_VERSION}-dind - docker:${DOCKER_VERSION}-dind
variables: variables:
......
.notify-slack: .notify-slack:
image: alpine image: ${GITLAB_DEPENDENCY_PROXY}alpine
stage: notify stage: notify
dependencies: [] dependencies: []
cache: {} cache: {}
......
...@@ -47,7 +47,7 @@ update-qa-cache: ...@@ -47,7 +47,7 @@ update-qa-cache:
policy: push # We want to rebuild the cache from scratch to ensure stale dependencies are cleaned up. policy: push # We want to rebuild the cache from scratch to ensure stale dependencies are cleaned up.
.package-and-qa-base: .package-and-qa-base:
image: ruby:2.7-alpine image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7-alpine
stage: qa stage: qa
retry: 0 retry: 0
script: script:
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.merge-train-sync: .merge-train-sync:
# We don't need/want any global before/after commands, so we overwrite these # We don't need/want any global before/after commands, so we overwrite these
# settings. # settings.
image: alpine:edge image: ${GITLAB_DEPENDENCY_PROXY}alpine:edge
stage: sync stage: sync
before_script: before_script:
- apk add --no-cache --update curl bash jq - apk add --no-cache --update curl bash jq
......
...@@ -25,7 +25,7 @@ review-build-cng: ...@@ -25,7 +25,7 @@ review-build-cng:
extends: extends:
- .default-retry - .default-retry
- .review:rules:review-build-cng - .review:rules:review-build-cng
image: ruby:2.7-alpine image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7-alpine
stage: review-prepare stage: review-prepare
before_script: before_script:
- source ./scripts/utils.sh - source ./scripts/utils.sh
...@@ -199,7 +199,7 @@ review-performance: ...@@ -199,7 +199,7 @@ review-performance:
parallel-spec-reports: parallel-spec-reports:
extends: extends:
- .review:rules:mr-only-manual - .review:rules:mr-only-manual
image: ruby:2.7-alpine image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7-alpine
stage: post-qa stage: post-qa
dependencies: ["review-qa-all"] dependencies: ["review-qa-all"]
variables: variables:
......
...@@ -26,7 +26,7 @@ cache gems: ...@@ -26,7 +26,7 @@ cache gems:
dont-interrupt-me: dont-interrupt-me:
extends: .setup:rules:dont-interrupt-me extends: .setup:rules:dont-interrupt-me
stage: sync stage: sync
image: alpine:edge image: ${GITLAB_DEPENDENCY_PROXY}alpine:edge
interruptible: false interruptible: false
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
...@@ -52,7 +52,7 @@ no_ee_check: ...@@ -52,7 +52,7 @@ no_ee_check:
verify-tests-yml: verify-tests-yml:
extends: extends:
- .setup:rules:verify-tests-yml - .setup:rules:verify-tests-yml
image: ruby:2.7-alpine image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7-alpine
stage: test stage: test
needs: [] needs: []
script: script:
...@@ -61,7 +61,7 @@ verify-tests-yml: ...@@ -61,7 +61,7 @@ verify-tests-yml:
- scripts/verify-tff-mapping - scripts/verify-tff-mapping
.detect-test-base: .detect-test-base:
image: ruby:2.7 image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7
needs: [] needs: []
stage: prepare stage: prepare
script: script:
......
.tests-metadata-state: .tests-metadata-state:
image: ruby:2.7 image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7
before_script: before_script:
- source scripts/utils.sh - source scripts/utils.sh
artifacts: artifacts:
......
workhorse: workhorse:
extends: .workhorse:rules:workhorse extends: .workhorse:rules:workhorse
image: golang:1.14 image: ${GITLAB_DEPENDENCY_PROXY}golang:1.14
stage: test stage: test
needs: [] needs: []
script: script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment