Commit e15d27ad authored by Dan Davison's avatar Dan Davison

Merge branch 'promote-container-registry-test' into 'master'

Promote container registry test to pre-prod

See merge request gitlab-org/gitlab!56487
parents 5cd6cff3 cd4aacf6
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
RSpec.describe 'Package', :orchestrated do RSpec.describe 'Package' do
describe 'Container Registry', only: { subdomain: :staging } do describe 'Container Registry', only: { subdomain: %i[staging pre] } do
let(:project) do let(:project) do
Resource::Project.fabricate_via_api! do |project| Resource::Project.fabricate_via_api! do |project|
project.name = 'project-with-registry' project.name = 'project-with-registry'
...@@ -26,6 +26,10 @@ module QA ...@@ -26,6 +26,10 @@ module QA
- docker:19.03.12-dind - docker:19.03.12-dind
variables: variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $IMAGE_TAG . - docker build -t $IMAGE_TAG .
......
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