Skip to content

Commit

Permalink
Merge pull request #4 from infralovers/dns-name-update
Browse files Browse the repository at this point in the history
fix: dns name update
  • Loading branch information
jaybrueder authored Oct 30, 2023
2 parents 8702ae6 + 720a5cd commit 393e89e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deployment-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

frontend:
name: guestbook
containerRegistry: registry.gitlab.<ENV-ANIMAL>.commandemy.training/git-user-<ENV-USER-ID>
containerRegistry: registry.gitlab.<ENV-ANIMAL>.<ENV-DOMAIN>/git-user-<ENV-USER-ID>
containerImage: guestbook-application
replicaCount: 1
port: 3000
Expand Down
2 changes: 1 addition & 1 deletion deployment-kustomize/base/guestbook-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: guestbook
image: registry.gitlab.<ENV-ANIMAL>.commandemy.training/git-user-<ENV-USER-ID>/guestbook-application:1
image: registry.gitlab.<ENV-ANIMAL>.<ENV-DOMAIN>/git-user-<ENV-USER-ID>/guestbook-application:1
env:
- name: REDIS-SERVICE-NAME
value: redis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ kind: Kustomization
bases:
- ../../base
images:
- name: registry.gitlab.<ENV-ANIMAL>.commandemy.training/git-user-<ENV-USER-ID>/guestbook-application
- name: registry.gitlab.<ENV-ANIMAL>.<ENV-DOMAIN>/git-user-<ENV-USER-ID>/guestbook-application
newTag: "1" # {"$imagepolicy": "flux-system:guestbook:tag"}

2 changes: 1 addition & 1 deletion deployment-manifest/guestbook-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: guestbook
image: registry.gitlab.<ENV-ANIMAL>.commandemy.training/git-user-<ENV-USER-ID>/guestbook-application:1
image: registry.gitlab.<ENV-ANIMAL>.<ENV-DOMAIN>/git-user-<ENV-USER-ID>/guestbook-application:1
env:
- name: REDIS-SERVICE-NAME
value: redis
Expand Down
9 changes: 9 additions & 0 deletions replace-variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ find deployment* -type f -exec sed -i -e "s/<ENV-USER-ID>/$USER_ID/g" {} \;

# Replace <ENV-ANIMAL>
find deployment* -type f -exec sed -i -e "s/<ENV-ANIMAL>/$ANIMAL/g" {} \;

# Replace <ENV-IP>
find deployment* -type f -exec sed -i -e "s/<ENV-IP>/$HOST_IP/g" {} \;

# Replace <ENV-NAME>
find deployment* -type f -exec sed -i -e "s/<ENV-NAME>/$ENVIRONMENT/g" {} \;

# Replace <ENV-DOMAIN>
find deployment* -type f -exec sed -i -e "s/<ENV-DOMAIN>/$DOMAIN/g" {} \;

0 comments on commit 393e89e

Please sign in to comment.