Skip to content

Commit

Permalink
(feat) I _think_ this ships the nozq2 variant of the docs to zildev a…
Browse files Browse the repository at this point in the history
…nd production (but not staging).
  • Loading branch information
rrw-zilliqa committed Aug 28, 2024
1 parent 41ae455 commit 9483a9a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cicd-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
env:
ENVIRONMENT: stg
IMAGE_TAG: ${{ steps.set-tag.outputs.tags }}
IMAGE_TAG_NOZQ2: ${{ steps.set-tag.outputs.tags }}-nozq2
run: |
cd ${{ matrix.path }}
make image/build-and-push
Expand All @@ -79,6 +80,7 @@ jobs:
env:
ENVIRONMENT: stg
IMAGE_TAG: "${{ env.REGISTRY }}/${{ matrix.image_name }}:latest"
IMAGE_TAG_NOZQ2: "${{ env.REGISTRY }}/${{ matrix.image_name }}-nozq2:latest"
run: |
cd ${{ matrix.path }}
make image/build-and-push
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,17 @@ run-image: build
run-image-nozq2: build
docker run --rm -p 8080:80 "$(IMAGE_TAG_NOZQ2)"

STG_TAG=asia-docker.pkg.dev/prj-d-dev-apps-n3p4o97j/zilliqa/developer-portal
DEV_TAG=asia-docker.pkg.dev/prj-d-dev-apps-n3p4o97j/zilliqa/developer-portal
DEV_TAG_NOZQ2=$(DEV_TAG)-nozq2
## Push to the dev repo so you can check that the docker container actually works ..
push-dev-image: build
docker tag "${IMAGE_TAG}" "${STG_TAG}"
docker push "${STG_TAG}"
docker tag "${IMAGE_TAG}" "${DEV_TAG}:latest"
docker push "${DEV_TAG}"
docker tag "${IMAGE_TAG_NOZQ2}" "${DEV_TAG_NOZQ2}:latest"
docker push "${DEV_TAG_NOZQ2}"
echo Now restart the pod ..

## Build and push the Docker image
image/build-and-push: build
docker push "$(IMAGE_TAG)"
docker push "$(IMAGE_TAG_NOZQ2)"
14 changes: 14 additions & 0 deletions cd/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ resources:
- certificate.yaml

patches:
- target:
kind: BackendConfig
name: developer-portal
patch: |-
- op: replace
path: "/spec/healthCheck/requestPath"
value: "/"
- target:
kind: Deployment
name: developer-portal
patch: |-
- op: replace
path: "/spec/template/spec/containers/0/image"
value: asia-docker.pkg.dev/prj-d-dev-apps-n3p4o97j/zilliqa/developer-portal-nozq2:latest
- target:
kind: Ingress
name: developer-portal
Expand Down
7 changes: 7 additions & 0 deletions cd/overlays/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ resources:
- certificate.yaml

patches:
- target:
kind: Deployment
name: developer-portal
patch: |-
- op: replace
path: "/spec/template/spec/containers/0/image"
value: developer-portal-nozq2
- target:
kind: Ingress
name: developer-portal
Expand Down

0 comments on commit 9483a9a

Please sign in to comment.