Skip to content

Adding two new mediums (#202) #121

Adding two new mediums (#202)

Adding two new mediums (#202) #121

Workflow file for this run

---
# This workflow will run unit tests and deploy the application to a
# target environment
name: Deploy
on:
push:
branches:
- main
tags:
- "*"
paths-ignore:
- "**.md" # All markdown files in the repository
release:
types: [released]
jobs:
deploy:
if: github.repository_owner == 'GSA-TTS'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: GSA-TTS/identity-idva-cf-setup@v2
id: cf-setup
with:
cf-username: ${{ secrets.CF_USERNAME }}
cf-password: ${{ secrets.CF_PASSWORD }}
cf-org: ${{ secrets.CF_ORG }}
- name: Deploy application
run: cf push --vars-file vars.yaml --var ENVIRONMENT=${{ steps.cf-setup.outputs.target-environment }} --strategy rolling
- name: Add network policies
run: |
cf add-network-policy gdrive outbound-proxy -s ${{ steps.cf-setup.outputs.target-environment }}-public --protocol tcp --port 8080
cf add-network-policy gdrive es-proxy -s ${{ steps.cf-setup.outputs.target-environment }} --protocol tcp --port 8080
cf add-network-policy gdrive qualtrix -s ${{ steps.cf-setup.outputs.target-environment }} --protocol tcp --port 8080