Skip to content

Commit

Permalink
Merge pull request #10 from ricardosantos9521/github-registry
Browse files Browse the repository at this point in the history
change docker registry to github
  • Loading branch information
ricardosantos9521 authored Jun 11, 2019
2 parents 3985d8c + f5b510d commit 136210a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -67,5 +67,5 @@ stages:
secretType: 'dockerRegistry'
containerRegistryType: 'Container Registry'
dockerRegistryEndpoint: $(dockerRegistryEndpoint)
secretName: 'dockerregistrysecret'
secretName: 'dockerregistrysecret-github'
checkLatest: true
4 changes: 2 additions & 2 deletions deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -34,7 +34,7 @@ spec:
periodSeconds: 10
successThreshold: 1
imagePullSecrets:
- name: dockerregistrysecret
- name: dockerregistrysecret-github
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 136210a

Please sign in to comment.