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

Add draft CI workflow #1

Merged
merged 16 commits into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* @Sage-Bionetworks-Workflows/admins

54 changes: 54 additions & 0 deletions .github/workflows/aws-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: aws-deploy

on:
pull_request:
branches: '*'
push:
branches: [prod]

jobs:

pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0

sceptre-deploy:
if: github.event_name == 'push'
runs-on: ubuntu-latest
needs: pre-commit
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Cache Pipenv virtualenv
uses: actions/cache@v2
id: pipenv-cache
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-v2-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-v2-
- name: Install Dependencies
uses: VaultVulp/action-pipenv@v2.0.1
if: steps.pipenv-cache.outputs.cache-hit != 'true'
env:
PIPENV_NOSPIN: 'true'
WORKON_HOME: ~/.local/share/virtualenvs
PIPENV_CACHE_DIR: ~/.local/share/pipcache
with:
command: install --dev
- name: Login Using CI Service User
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.NEXTFLOW_PROD_CI_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.NEXTFLOW_PROD_CI_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy to AWS Account
uses: VaultVulp/action-pipenv@v2.0.1
with:
command: run sceptre launch prod --yes
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ name = "pypi"

[packages]
sceptre = "*"
sceptre-ssm-resolver = "*"

[dev-packages]
pre-commit = "*"
Expand Down
40 changes: 16 additions & 24 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file removed config/dev/config.yaml
Empty file.