mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Attempt deploy from branch
This commit is contained in:
32
.github/workflows/deploy.yml
vendored
32
.github/workflows/deploy.yml
vendored
@@ -1,10 +1,10 @@
|
||||
name: Deploy to prototype environment
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [ Run checks ]
|
||||
types:
|
||||
- completed
|
||||
on: [push]
|
||||
# workflow_run:
|
||||
# workflows: [ Run checks ]
|
||||
# types:
|
||||
# - completed
|
||||
# branches: [ main ]
|
||||
|
||||
permissions:
|
||||
@@ -13,7 +13,7 @@ permissions:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
|
||||
steps:
|
||||
- name: Install container dependencies
|
||||
@@ -34,17 +34,17 @@ jobs:
|
||||
sudo dpkg -i cf-cli_amd64.deb
|
||||
- name: Deploy to gsa-10x-prototyping api
|
||||
run: make cf-deploy
|
||||
with:
|
||||
env:
|
||||
CF_ORG: gsa-10x-prototyping
|
||||
CF_SPACE: 10x-notifications
|
||||
CF_APP: notifications-api
|
||||
DANGEROUS_SALT: {{secrets.DANGEROUS_SALT}}
|
||||
SECRET_KEY: {{secrets.SECRET_KEY}}
|
||||
AWS_ACCESS_KEY_ID: {{secrets.AWS_ACCESS_KEY_ID}}
|
||||
AWS_SECRET_ACCESS_KEY: {{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
|
||||
SECRET_KEY: ${{ secrets.SECRET_KEY }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
|
||||
bail:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||
steps:
|
||||
- run: echo 'Checks failed, preventing deploy'
|
||||
# bail:
|
||||
# runs-on: ubuntu-latest
|
||||
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||
# steps:
|
||||
# - run: echo 'Checks failed, preventing deploy'
|
||||
|
||||
Reference in New Issue
Block a user