mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 16:22:17 -05:00
Update egress proxy deployment steps
This changeset updates the egress proxy deployment steps to match the admin repo, based on lessons learned there. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
13
.github/actions/deploy-proxy/action.yml
vendored
13
.github/actions/deploy-proxy/action.yml
vendored
@@ -16,6 +16,19 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install cf-cli
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
curl -A "cg-deploy-action" -v -L -o cf-cli_amd64.deb 'https://packages.cloudfoundry.org/stable?release=debian64&version=v8&source=github'
|
||||||
|
sudo dpkg -i cf-cli_amd64.deb
|
||||||
|
- name: Login to cf-cli
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cf api api.fr.cloud.gov
|
||||||
|
cf auth
|
||||||
|
- name: Target org and space
|
||||||
|
shell: bash
|
||||||
|
run: cf target -o ${{ inputs.cf_org }} -s ${{ inputs.cf_space }}
|
||||||
- name: Set restricted space egress
|
- name: Set restricted space egress
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ./terraform/set_space_egress.sh -t -s ${{ inputs.cf_space }}
|
run: ./terraform/set_space_egress.sh -t -s ${{ inputs.cf_space }}
|
||||||
|
|||||||
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
@@ -101,9 +101,12 @@ jobs:
|
|||||||
.github/actions/deploy-proxy/action.yml
|
.github/actions/deploy-proxy/action.yml
|
||||||
.github/workflows/deploy.yml
|
.github/workflows/deploy.yml
|
||||||
- name: Deploy egress proxy
|
- name: Deploy egress proxy
|
||||||
if: steps.changed-egress-config.outputs.any_changed == 'true'
|
#if: steps.changed-egress-config.outputs.any_changed == 'true'
|
||||||
uses: ./.github/actions/deploy-proxy
|
uses: ./.github/actions/deploy-proxy
|
||||||
with:
|
with:
|
||||||
|
cf_username: ${{ secrets.CLOUDGOV_USERNAME }}
|
||||||
|
cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
|
||||||
|
cf_org: gsa-tts-benefits-studio
|
||||||
cf_space: notify-staging
|
cf_space: notify-staging
|
||||||
app: notify-api-staging
|
app: notify-api-staging
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user