Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VACMS-16863: Trigger manifest update from image creation workflow. #440

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

timcosgrove
Copy link
Contributor

Description

Relates to #16863.

Triggers manifest update from image creation workflow.

@va-cms-bot va-cms-bot temporarily deployed to Tugboat March 6, 2024 00:28 Destroyed
@@ -88,4 +88,13 @@ jobs:
docker build . -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f ./Dockerfile
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

- name: Write release name as artifact
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same logic as in the production tag creation workflow.


jobs:
update-manifest:
if: ${{ !(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure') }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before: if this is triggered by workflow_run and that was a failure, do not run.

strategy:
fail-fast: false
max-parallel: 4
matrix:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This setup is so we can deploy all environments at once.

# If this is triggered via workflow_run, run as a matrix and deploy all
# apps and envs.
- name: Update image and helm chart versions (triggered by upstream)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If these steps run (because triggered by workflow_run), it will cause the job to be split out into 4 parallel jobs which will deploy each environment.

@timcosgrove timcosgrove merged commit 444573c into main Mar 6, 2024
7 checks passed
@timcosgrove timcosgrove deleted the VACMS-16863-auto_deploy branch March 6, 2024 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants