Skip to content

Commit 863fead

Browse files
committed
Update CI/CD workflows to use dynamic input for environment selection
1 parent 6432811 commit 863fead

6 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/infrastructure-ci-cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ jobs:
147147
148148
echo "charts=${charts_json}" >> $GITHUB_OUTPUT
149149
echo -e "## Charts to process: \n\n\`\`\`json\n$(echo $charts_json | jq)\n\`\`\`" >> $GITHUB_STEP_SUMMARY
150+
150151
lint-and-test:
151152
needs: setup
152153
runs-on: ubuntu-latest
@@ -252,7 +253,7 @@ jobs:
252253
run: |
253254
# Get all services for this chart
254255
services=$(oc get services -n "$NAMESPACE" \
255-
-l app.kubernetes.io/instance=${{ matrix.chart.name }} \
256+
-l app=${{ matrix.chart.name }} \
256257
-o jsonpath='{.items[*].metadata.name}')
257258
258259
if [[ -z $services ]]; then

.github/workflows/met-api-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
runs-on: ubuntu-24.04
3939

4040
if: github.repository == 'bcgov/met-public'
41-
environment:
42-
name: "dev"
41+
environment: ${{ github.event.inputs.environment || 'dev' }}
4342

4443
steps:
4544
- uses: actions/checkout@v5

.github/workflows/met-cron-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ jobs:
3939
runs-on: ubuntu-24.04
4040

4141
if: github.repository == 'bcgov/met-public'
42-
environment:
43-
name: "dev"
42+
environment: ${{github.event.inputs.environment || 'dev' }}
4443

4544
steps:
4645
- uses: actions/checkout@v5

.github/workflows/met-etl-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
runs-on: ubuntu-24.04
4141

4242
if: github.repository == 'bcgov/met-public'
43-
environment:
44-
name: "dev"
43+
environment: ${{github.event.inputs.environment || 'dev' }}
4544

4645
steps:
4746
- uses: actions/checkout@v5

.github/workflows/met-web-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
runs-on: ubuntu-24.04
4141

4242
if: github.repository == 'bcgov/met-public'
43-
environment:
44-
name: "dev"
43+
environment: ${{github.event.inputs.environment || 'dev' }}
4544

4645
steps:
4746
- uses: actions/checkout@v5

.github/workflows/notify-api-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
runs-on: ubuntu-24.04
3939

4040
if: github.repository == 'bcgov/met-public'
41-
environment:
42-
name: "dev"
41+
environment: ${{github.event.inputs.environment || 'dev' }}
4342

4443
steps:
4544
- uses: actions/checkout@v5

0 commit comments

Comments
 (0)