From f5b510d3faefa061b81fc5b13b2e4b4206aa6904 Mon Sep 17 00:00:00 2001 From: ricardo Date: Tue, 11 Jun 2019 17:40:55 +0100 Subject: [PATCH] change docker registry --- azure-pipelines.yml | 6 +++--- deployment.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3a2fa04..06cbc88 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,8 +3,8 @@ trigger: variables: poolName: HomeServers - imageName: 'registry.gitlab.com/ricardosantos9521/github/reactproject:$(Build.BuildNumber)' - dockerRegistryEndpoint: 'gitlab registry' + imageName: 'docker.pkg.github.com/ricardosantos9521/reactproject/reactproject:$(Build.BuildNumber)' + dockerRegistryEndpoint: 'github registry' stages: #build stage @@ -67,5 +67,5 @@ stages: secretType: 'dockerRegistry' containerRegistryType: 'Container Registry' dockerRegistryEndpoint: $(dockerRegistryEndpoint) - secretName: 'dockerregistrysecret' + secretName: 'dockerregistrysecret-github' checkLatest: true \ No newline at end of file diff --git a/deployment.yaml b/deployment.yaml index 1179110..d8d7c3b 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -19,7 +19,7 @@ spec: spec: containers: - name: reactproject - image: "registry.gitlab.com/ricardosantos9521/github/reactproject:BUILDNUMBER" + image: "docker.pkg.github.com/ricardosantos9521/reactproject/reactproject:BUILDNUMBER" ports: - containerPort: 80 resources: @@ -34,7 +34,7 @@ spec: periodSeconds: 10 successThreshold: 1 imagePullSecrets: - - name: dockerregistrysecret + - name: dockerregistrysecret-github --- apiVersion: v1 kind: Service