diff --git a/.github/workflows/staging-ci-cd.yml b/.github/workflows/staging-ci-cd.yml index 0c5235008cee3011899b0d9ed91e1ae9d35faed1..b9f2245a1ecb24e75818e76ec49a7ccfddf507ff 100644 --- a/.github/workflows/staging-ci-cd.yml +++ b/.github/workflows/staging-ci-cd.yml @@ -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 diff --git a/resources.yaml b/production.yaml similarity index 84% rename from resources.yaml rename to production.yaml index f9611f7ec0c29c606437cd689f5fcc29d14aa84c..a3d64c573431beea83e5b403af669c5eff41c125 100644 --- a/resources.yaml +++ b/production.yaml @@ -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 diff --git a/staging.yaml b/staging.yaml new file mode 100644 index 0000000000000000000000000000000000000000..91457e76499c95f3a4b2718dfaf62f90a0dda88b --- /dev/null +++ b/staging.yaml @@ -0,0 +1,34 @@ +--- +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