Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Fixes for s3-sync action #25

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from
Open

Fixes for s3-sync action #25

wants to merge 2 commits into from

Conversation

csears-hg
Copy link
Contributor

Split s3-sync.yaml out into dev and stable actions. Dev will run on any branch pull that is not stable.

Added DEST_DIR so the sync uploads to 'deployment/latest' for stable and 'deployment/dev' for dev. Otherwise it would upload to the root directory of the bucket.

Should address #24

Split s3-sync.yaml out into dev and stable actions. Dev will run on any branch pull that is not stable.

Added DEST_DIR so the sync uploads to 'deployment/latest' for stable and 'deployment/dev' for dev. Otherwise it would upload to the root directory of the bucket.

Should address #24
Copy link
Contributor

@bbriggs bbriggs left a comment

Choose a reason for hiding this comment

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

We should revisit what conditions trigger a push to the dev cfn template

name: Upload Cloud Formation - Dev

on:
push:
Copy link
Contributor

Choose a reason for hiding this comment

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

this causes the cfn template to update on all pushes to any branch that isn't stable, which I think is probably not what we want, particularly if there are multiple PRs being worked on in parallel.

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 triggers on non-stable branch pushes, but it uses a different path for DEST_DIR ("deployment/dev" instead of "deployment/latest"), which gives us a way to test dev branches in CloudFormation before they are merged into stable. Regarding the parallel dev branches, we could include the branch name in the DEST_DIR path so each branch was uploaded to a unique location.

@csears-hg
Copy link
Contributor Author

This second commit includes the branch name in the S3 DEST_DIR path. I reran the action and it correctly copied the cfn template to the /deployment/dev/fix-s3-sync/. Should address @bbriggs ' concern about parallel branches.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants