Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit b0eb787f authored by Muhammad Raihan Akbar's avatar Muhammad Raihan Akbar
Browse files

[REFACTOR] reconfigured yaml file to differentiate prod and staging

parent 9904cf2e
No related branches found
No related tags found
1 merge request!1Login registration
......@@ -74,5 +74,5 @@ jobs:
GOOGLE_REPOSiTORY: staging-repository
run: |
gcloud container clusters get-credentials safetypin-staging --region asia-southeast2
sed -i "s/GOOGLE_PROJECT/$GOOGLE_PROJECT/g" resources.yaml
kubectl apply -f resources.yaml
\ No newline at end of file
sed -i "s/GOOGLE_PROJECT/$GOOGLE_PROJECT/g" staging.yaml
kubectl apply -f staging.yaml
\ No newline at end of file
......@@ -29,6 +29,6 @@ spec:
spec:
containers:
- name: authentication
image: us-central1-docker.pkg.dev/GOOGLE_PROJECT/GOOGLE_REPOSITORY/authentication:latest
image: us-central1-docker.pkg.dev/GOOGLE_PROJECT/my-repository/authentication:latest
ports:
- containerPort: 8080
\ No newline at end of file
---
apiVersion: v1
kind: Service
metadata:
name: authentication
spec:
type: LoadBalancer
selector:
app: authentication
ports:
- port: 80
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: authentication
labels:
app: authentication
spec:
replicas: 1
selector:
matchLabels:
app: authentication
template:
metadata:
labels:
app: authentication
spec:
containers:
- name: authentication
image: us-central1-docker.pkg.dev/GOOGLE_PROJECT/staging-repository/authentication:latest
ports:
- containerPort: 8080
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment