Skip to content

Commit 34a8a60

Browse files
Dummy Test.
1 parent 0286608 commit 34a8a60

4 files changed

Lines changed: 90 additions & 18 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# .github/workflows/build-release.yml
2+
name: "Dummy Build"
3+
on:
4+
workflow_call:
5+
inputs:
6+
releaseVersion:
7+
required: true
8+
type: string
9+
developmentVersion:
10+
required: true
11+
type: string
12+
awsRegion:
13+
required: true
14+
type: string
15+
outputs:
16+
# This output is expected by the main workflow's deployment jobs.
17+
bfd_release:
18+
description: "The version that was built."
19+
value: ${{ jobs.build.outputs.release_version }}
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
outputs:
25+
release_version: ${{ steps.mock_build.outputs.version }}
26+
steps:
27+
- name: Mock Build
28+
id: mock_build
29+
run: |
30+
echo "Simulating build..."
31+
echo "Building version: ${{ inputs.releaseVersion }} in ${{ inputs.awsRegion }}"
32+
# Sleep for a few seconds to simulate work
33+
sleep 5
34+
# Set a mock version for the output
35+
echo "version=${{ inputs.releaseVersion }}-mock" >> $GITHUB_OUTPUT
36+
echo "Build complete."
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .github/workflows/deploy-env-services.yml
2+
name: "Dummy Env Deploy"
3+
on:
4+
workflow_call:
5+
inputs:
6+
bfd-env:
7+
required: true
8+
type: string
9+
git-ref:
10+
required: true
11+
type: string
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Mock Deploy Env
18+
run: |
19+
echo "Simulating environment deployment..."
20+
echo "Deploying ${{ inputs.git-ref }} to ${{ inputs.bfd-env }} environment"
21+
sleep 3
22+
echo "Deployment complete."
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .github/workflows/deploy-platform-services.yml
2+
name: "Dummy Platform Deploy"
3+
on:
4+
workflow_call:
5+
inputs:
6+
account-type:
7+
required: true
8+
type: string
9+
git-ref:
10+
required: true
11+
type: string
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Mock Deploy Platform
18+
run: |
19+
echo "Simulating platform deployment..."
20+
echo "Deploying ${{ inputs.git-ref }} to ${{ inputs.account-type }} account"
21+
sleep 3
22+
echo "Deployment complete."

.github/workflows/release-and-deploy-bfd.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ jobs:
4343
notify-start:
4444
runs-on: ubuntu-latest
4545
steps:
46-
- name: Configure AWS credentials
47-
uses: aws-actions/configure-aws-credentials@v4
48-
with:
49-
role-to-assume: ${{ secrets.AWS_ROLE }}
50-
aws-region: ${{ inputs.aws-region || 'us-east-1' }}
51-
52-
5346
- name: Load Slack webhook
5447
uses: cmsgov/cdap/actions/aws-params-env-action@main
5548
with:
@@ -75,7 +68,8 @@ jobs:
7568
build-release:
7669
needs: notify-start
7770
if: ${{ github.ref_name == github.event.repository.default_branch }}
78-
uses: ./.github/workflows/build-release.yml
71+
# uses: ./.github/workflows/build-release.yml
72+
uses: ./.github/workflows/dummy-build-release.yml
7973
with:
8074
releaseVersion: ${{ inputs.release-version }}
8175
developmentVersion: ${{ inputs.development-version }}
@@ -86,7 +80,8 @@ jobs:
8680
# DEPLOYMENTS
8781
# -------------------------
8882
deploy-platform:
89-
uses: ./.github/workflows/deploy-platform-services.yml
83+
# uses: ./.github/workflows/deploy-platform-services.yml
84+
uses: ./.github/workflows/dummy-deploy-platform-services.yml
9085
needs: build-release
9186
strategy:
9287
matrix:
@@ -97,23 +92,26 @@ jobs:
9792
secrets: inherit
9893

9994
deploy-to-test:
100-
uses: ./.github/workflows/deploy-env-services.yml
95+
# uses: ./.github/workflows/deploy-env-services.yml
96+
uses: ./.github/workflows/dummy-deploy-env-services.yml
10197
needs: [build-release, deploy-platform]
10298
with:
10399
bfd-env: test
104100
git-ref: refs/tags/${{ needs.build-release.outputs.bfd_release }}
105101
secrets: inherit
106102

107103
deploy-to-sandbox:
108-
uses: ./.github/workflows/deploy-env-services.yml
104+
# uses: ./.github/workflows/deploy-env-services.yml
105+
uses: ./.github/workflows/dummy-deploy-env-services.yml
109106
needs: [build-release, deploy-to-test]
110107
with:
111108
bfd-env: sandbox
112109
git-ref: refs/tags/${{ needs.build-release.outputs.bfd_release }}
113110
secrets: inherit
114111

115112
deploy-to-prod:
116-
uses: ./.github/workflows/deploy-env-services.yml
113+
# uses: ./.github/workflows/deploy-env-services.yml
114+
uses: ./.github/workflows/dummy-deploy-env-services.yml
117115
needs: [build-release, deploy-to-sandbox]
118116
with:
119117
bfd-env: prod
@@ -135,12 +133,6 @@ jobs:
135133
if: always()
136134

137135
steps:
138-
- name: Configure AWS credentials
139-
uses: aws-actions/configure-aws-credentials@v4
140-
with:
141-
role-to-assume: ${{ secrets.AWS_ROLE }}
142-
aws-region: ${{ inputs.aws-region || 'us-east-1' }}
143-
144136
- name: Load Slack webhook
145137
uses: cmsgov/cdap/actions/aws-params-env-action@main
146138
with:

0 commit comments

Comments
 (0)