Skip to content

Commit da9bc12

Browse files
committed
fix workflow
1 parent b7a57bc commit da9bc12

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ jobs:
6666
needs: [tag_release, quality_checks, get_commit_id]
6767
uses: ./.github/workflows/docker_image_build.yml
6868
with:
69-
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
69+
VERSION_NUMBER: pre-release-${{ needs.get_commit_id.outputs.sha_short }}
7070
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
7171

7272
release_dev:
7373
needs: [tag_release, package_code, get_commit_id]
7474
uses: ./.github/workflows/docker_image_upload.yml
7575
with:
7676
AWS_ENVIRONMENT: dev
77-
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
77+
VERSION_NUMBER: pre-release-${{ needs.get_commit_id.outputs.sha_short }}
7878
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
79-
TAG_LATEST: true
80-
DOCKER_IMAGE_TAG: ${{needs.tag_release.outputs.version_tag}}
79+
TAG_LATEST: false
80+
DOCKER_IMAGE_TAG: pre-release-${{ needs.get_commit_id.outputs.sha_short }}
8181
secrets:
8282
CDK_PUSH_IMAGE_ROLE: ${{ secrets.DEV_CDK_PUSH_IMAGE_ROLE }}
8383

@@ -86,10 +86,10 @@ jobs:
8686
uses: ./.github/workflows/docker_image_upload.yml
8787
with:
8888
AWS_ENVIRONMENT: qa
89-
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
89+
VERSION_NUMBER: pre-release-${{ needs.get_commit_id.outputs.sha_short }}
9090
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
91-
TAG_LATEST: true
92-
DOCKER_IMAGE_TAG: ${{needs.tag_release.outputs.version_tag}}
91+
TAG_LATEST: false
92+
DOCKER_IMAGE_TAG: pre-release-${{ needs.get_commit_id.outputs.sha_short }}
9393
secrets:
9494
CDK_PUSH_IMAGE_ROLE: ${{ secrets.QA_CDK_PUSH_IMAGE_ROLE }}
9595

@@ -98,9 +98,13 @@ jobs:
9898
uses: ./.github/workflows/docker_image_upload.yml
9999
with:
100100
AWS_ENVIRONMENT: ref
101-
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
101+
VERSION_NUMBER: pre-release-${{ needs.get_commit_id.outputs.sha_short }}
102102
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
103-
TAG_LATEST: true
104-
DOCKER_IMAGE_TAG: ${{needs.tag_release.outputs.version_tag}}
103+
TAG_LATEST: false
104+
DOCKER_IMAGE_TAG: pre-release-${{ needs.get_commit_id.outputs.sha_short }}
105105
secrets:
106106
CDK_PUSH_IMAGE_ROLE: ${{ secrets.REF_CDK_PUSH_IMAGE_ROLE }}
107+
108+
package_npm_code:
109+
needs: [quality_checks, get_commit_id]
110+
uses: ./.github/workflows/package_npm_code.yml

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
9393

9494
package_npm_code:
95-
needs: [get_issue_number, quality_checks, get_commit_id]
95+
needs: [quality_checks, get_commit_id]
9696
uses: ./.github/workflows/package_npm_code.yml
9797

9898
release_docker_image:

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ This repository contains a docker image used to deploy CDK to our environments a
99
- `scripts/` Utilities helpful to developers of this specification
1010
- `.github/` Contains GitHub workflows that are used for building and deploying from pull requests and releases
1111

12+
## Releases
13+
A release of this code happens automatically every Wednesday, but can also be triggered manually by running the release workflow.
14+
The release workflow does the following
15+
- creates a new tagged version
16+
- creates a new version of the cdk construct library and publishes it to github
17+
- pushes the cdk-utils docker image to dev and all other environments (subject to manual release approval in github actions)
18+
1219
## CDK Constructs
1320

1421
This contains common CDK constructs used in EPS projects.

0 commit comments

Comments
 (0)