Skip to content

Commit

Permalink
Move to per-environment CodeDeploy configs
Browse files Browse the repository at this point in the history
This will solve the problem of staging deploying to production. Toward #755.
  • Loading branch information
waldoj committed Nov 30, 2021
1 parent 21431b5 commit f97415f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
- run: >-
if [ "$GITHUB_BRANCH" = "master" ]; then
./deploy/increase_verbosity.sh; fi
- run: >-
if [ "$GITHUB_BRANCH" = "master" ]; then
mv appspec-staging.yml appspec.yml
elif [ "$GITHUB_BRANCH" = "deploy" ]; then
mv appspec-deploy.yml appspec.yml
fi
deploy:
runs-on: ubuntu-18.04
needs: build # Don't deploy unless the build succeeds
Expand Down
File renamed without changes.
22 changes: 22 additions & 0 deletions appspec-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 0.0
os: linux
files:
- source: ./
destination: /var/www/staging.richmondsunlight.com/
file_exists_behavior: OVERWRITE
permissions:
- object: /var/www/staging.richmondsunlight.com/
owner: ubuntu
group: ubuntu
mode: 755
acls:
- "d:u::rwx"
- "d:g::rwx"
- "d:o::rwx"
type:
- directory
hooks:
BeforeInstall:
- location: deploy/predeploy.sh
AfterInstall:
- location: deploy/postdeploy.sh

0 comments on commit f97415f

Please sign in to comment.