Skip to content

Commit 46af619

Browse files
authored
feat: DEVOPS-2227 decommission devex pipelines (#760)
1 parent f0e390f commit 46af619

3 files changed

Lines changed: 2 additions & 162 deletions

File tree

.github/workflows/ci-on-pr-bazel-test-ubuntu-22.04.yml renamed to .github/workflows/ci-on-pr-bazel-test-ubuntu-22.04.yml.disabled

File renamed without changes.

.github/workflows/cicd-prd.yml

Lines changed: 1 addition & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -90,89 +90,4 @@ jobs:
9090
cache-key: ${{ env.REGISTRY }}/${{ matrix.image_name }}-cache
9191
build-args: |
9292
DEPLOY_ENV=prd
93-
VITE_ENV="PROD"
94-
95-
build-makefile:
96-
permissions:
97-
id-token: write
98-
contents: write
99-
runs-on: ubuntu-22.04
100-
name: "Build image with Makefile"
101-
strategy:
102-
fail-fast: false
103-
matrix:
104-
application: [devex]
105-
include:
106-
- application: devex
107-
image_name: devex
108-
path: products/devex
109-
tag_length: 8
110-
tag_latest: false
111-
env:
112-
DOCKER_DOMAIN: asia-docker.pkg.dev
113-
REGISTRY: asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-public
114-
steps:
115-
- name: Checkout code
116-
uses: actions/checkout@v3
117-
with:
118-
submodules: recursive
119-
ref: ${{ github.event.pull_request.head.ref }}
120-
repository: ${{ github.event.pull_request.head.repo.full_name }}
121-
fetch-depth: 0
122-
123-
- name: "Authenticate to Google Cloud - production"
124-
id: google-auth
125-
uses: "google-github-actions/auth@v1"
126-
with:
127-
token_format: "access_token"
128-
workload_identity_provider: "${{ secrets.GCP_PRD_GITHUB_WIF }}"
129-
service_account: "${{ secrets.GCP_PRD_GITHUB_SA_DOCKER_REGISTRY }}"
130-
create_credentials_file: true
131-
132-
- name: Login to the registry - production
133-
uses: docker/login-action@v2
134-
with:
135-
registry: ${{ env.DOCKER_DOMAIN }}
136-
username: "oauth2accesstoken"
137-
password: "${{ steps.google-auth.outputs.access_token }}"
138-
139-
- name: Get tag version - production
140-
if: github.event_name == 'push'
141-
id: set-tag
142-
uses: Zilliqa/gh-actions-workflows/actions/generate-tag@v1
143-
with:
144-
tag: ${{ env.REGISTRY }}/${{ matrix.image_name }}
145-
length: ${{ matrix.tag_length }}
146-
147-
- name: "Build and push ${{ matrix.application }} - production"
148-
if: github.event_name == 'push'
149-
env:
150-
ENVIRONMENT: prd
151-
IMAGE_TAG: ${{ steps.set-tag.outputs.tags }}
152-
ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }}
153-
ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }}
154-
run: |
155-
cd ${{ matrix.path }}
156-
make image/build-and-push
157-
158-
- name: "Build and push ${{ matrix.application }} - production"
159-
if: github.event_name == 'release'
160-
env:
161-
ENVIRONMENT: prd
162-
IMAGE_TAG: ${{ env.REGISTRY }}/${{ matrix.image_name }}:${{ github.ref_name }}
163-
ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }}
164-
ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }}
165-
run: |
166-
cd ${{ matrix.path }}
167-
make image/build-and-push
168-
169-
- name: "Build and push ${{ matrix.application }} tag latest - production"
170-
if: matrix.tag_latest == true && github.event_name == 'release'
171-
env:
172-
ENVIRONMENT: prd
173-
IMAGE_TAG: ${{ env.REGISTRY }}/${{ matrix.image_name }}:latest
174-
ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }}
175-
ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }}
176-
run: |
177-
cd ${{ matrix.path }}
178-
make image/build-and-push
93+
VITE_ENV="PROD"

.github/workflows/cicd-stg.yml

Lines changed: 1 addition & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -80,79 +80,4 @@ jobs:
8080
service-account: "${{ secrets.GCP_STG_GITHUB_SA_DOCKER_REGISTRY }}"
8181
cache-key: ${{ env.REGISTRY }}/${{ matrix.image_name }}-cache
8282
build-args: |
83-
DEPLOY_ENV=stg
84-
85-
build-makefile:
86-
permissions:
87-
id-token: write
88-
contents: write
89-
runs-on: ubuntu-22.04
90-
# To test deployments, remove the github.ref_name clause: see devops/docs/z2-testing-apps.md - rrw 2024-04-12
91-
# && github.ref_name == 'main'
92-
if: github.actor != 'dependabot[bot]'
93-
name: "Build image with Makefile"
94-
strategy:
95-
fail-fast: false
96-
matrix:
97-
application: [devex]
98-
include:
99-
- application: devex
100-
image_name: devex
101-
path: products/devex
102-
tag_length: 8
103-
tag_latest: false
104-
env:
105-
DOCKER_DOMAIN: asia-docker.pkg.dev
106-
REGISTRY: asia-docker.pkg.dev/prj-d-devops-services-4dgwlsse/zilliqa-public
107-
steps:
108-
- name: Checkout code
109-
uses: actions/checkout@v3
110-
with:
111-
submodules: recursive
112-
ref: ${{ github.event.pull_request.head.ref }}
113-
repository: ${{ github.event.pull_request.head.repo.full_name }}
114-
fetch-depth: 0
115-
116-
- name: "Authenticate to Google Cloud - staging"
117-
id: google-auth
118-
uses: "google-github-actions/auth@v1"
119-
with:
120-
token_format: "access_token"
121-
workload_identity_provider: "${{ secrets.GCP_PRD_GITHUB_WIF }}"
122-
service_account: "${{ secrets.GCP_STG_GITHUB_SA_DOCKER_REGISTRY }}"
123-
create_credentials_file: true
124-
125-
- name: Login to the registry - staging
126-
uses: docker/login-action@v2
127-
with:
128-
registry: ${{ env.DOCKER_DOMAIN }}
129-
username: "oauth2accesstoken"
130-
password: "${{ steps.google-auth.outputs.access_token }}"
131-
132-
- name: Get tag version - staging
133-
id: set-tag
134-
uses: Zilliqa/gh-actions-workflows/actions/generate-tag@v1
135-
with:
136-
tag: ${{ env.REGISTRY }}/${{ matrix.image_name }}
137-
length: ${{ matrix.tag_length }}
138-
139-
- name: "Build and push ${{ matrix.application }} - staging"
140-
env:
141-
ENVIRONMENT: stg
142-
IMAGE_TAG: ${{ steps.set-tag.outputs.tags }}
143-
ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }}
144-
ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }}
145-
run: |
146-
cd ${{ matrix.path }}
147-
make image/build-and-push
148-
149-
- name: "Build and push ${{ matrix.application }} tag latest - staging"
150-
if: ${{ matrix.tag_latest == true }}
151-
env:
152-
ENVIRONMENT: stg
153-
IMAGE_TAG: "${{ env.REGISTRY }}/${{ matrix.image_name }}:latest"
154-
ENV_FILES_DECRYPTER_NONPRD: ${{ secrets.ENV_FILES_DECRYPTER_NONPRD }}
155-
ENV_FILES_DECRYPTER_PRD: ${{ secrets.ENV_FILES_DECRYPTER_PRD }}
156-
run: |
157-
cd ${{ matrix.path }}
158-
make image/build-and-push
83+
DEPLOY_ENV=stg

0 commit comments

Comments
 (0)