Commit cd4aacf6 authored by Sofia Vistas's avatar Sofia Vistas

Promote container registry test to pre-prod

parent 70b03b1d
# 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