Skip to content

Commit

Permalink
CI: run approve-deployment before expect-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Nov 30, 2023
1 parent bccedb0 commit dad23f4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 53 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/readme.md → .github/workflows/demos.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ deploy-manually.yml is a third, manually triggered pipeline, which has two purpo
Its fingerprint is 388f48140331636dcb230bd8fd896c36e6007cc10c6065ad86a5bda61fe4a110
This will result in Kosli snapshot with an Artifact with no-provenance.
Again, this Artifact will be deployed to https://cyber-dojo.org
but this Artifact has full and correct functionality.
but this Artifact has full and correct functionality.

Note: the lint: job occasionally fails its CI job.
There is typically a spurious failure, and if you re-run the failed jobs it will pass.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ jobs:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}

expect-deployment:
needs: [variables, sdlc-gate]
needs: [variables, approve-deployment]
uses: cyber-dojo/differ/.github/workflows/sub_expect_deployment.yml@main
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
with:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}

deploy:
needs: [variables, approve-deployment]
needs: [variables, expect-deployment]
uses: cyber-dojo/differ/.github/workflows/sub_deploy.yml@main
with:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
IMAGE_TAG: ${{ needs.variables.outputs.image_tag }}

expected-deployment:
needs: [variables, sdlc-gate]
needs: [variables, approve-deployment]
uses: cyber-dojo/differ/.github/workflows/sub_expect_deployment.yml@main
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
Expand Down
49 changes: 0 additions & 49 deletions docs/notes.txt

This file was deleted.

0 comments on commit dad23f4

Please sign in to comment.