diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 8128d2ae2..c89371029 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,50 +1,50 @@ -name: Run checks +# name: Run checks -on: [push] +# on: [push] -permissions: - contents: read +# permissions: +# contents: read -jobs: - build: - runs-on: ubuntu-latest +# jobs: +# build: +# runs-on: ubuntu-latest - services: - postgres: - image: postgres - env: - POSTGRES_USER: user - POSTGRES_PASSWORD: password - POSTGRES_DB: test_notification_api - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps tcp port 5432 on service container to the host - - 5432:5432 +# services: +# postgres: +# image: postgres +# env: +# POSTGRES_USER: user +# POSTGRES_PASSWORD: password +# POSTGRES_DB: test_notification_api +# options: >- +# --health-cmd pg_isready +# --health-interval 10s +# --health-timeout 5s +# --health-retries 5 +# ports: +# # Maps tcp port 5432 on service container to the host +# - 5432:5432 - steps: - - name: Install container dependencies - run: | - sudo apt-get update \ - && sudo apt-get install -y --no-install-recommends \ - libcurl4-openssl-dev - - uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v3 - with: - python-version: "3.9" - - name: Install application dependencies - run: make bootstrap - env: - SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api - # - name: Run style checks - # run: flake8 . - # - name: Check imports alphabetized - # run: isort --check-only ./app ./tests - - name: Run tests - run: pytest -n4 --maxfail=10 - env: - SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api +# steps: +# - name: Install container dependencies +# run: | +# sudo apt-get update \ +# && sudo apt-get install -y --no-install-recommends \ +# libcurl4-openssl-dev +# - uses: actions/checkout@v3 +# - name: Set up Python 3.9 +# uses: actions/setup-python@v3 +# with: +# python-version: "3.9" +# - name: Install application dependencies +# run: make bootstrap +# env: +# SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api +# # - name: Run style checks +# # run: flake8 . +# # - name: Check imports alphabetized +# # run: isort --check-only ./app ./tests +# - name: Run tests +# run: pytest -n4 --maxfail=10 +# env: +# SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c43160cf9..1df39690a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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' \ No newline at end of file + # bail: + # runs-on: ubuntu-latest + # if: ${{ github.event.workflow_run.conclusion == 'failure' }} + # steps: + # - run: echo 'Checks failed, preventing deploy'