Skip to content

Switching badger to vendor (#177) #31

Switching badger to vendor (#177)

Switching badger to vendor (#177) #31

Workflow file for this run

---
# This workflow will validate the Kong decK state file and deploy
# the application to a target environment
name: Deploy Egress Kong
on:
push:
branches:
- main
tags:
- '*'
paths:
- 'common/**'
- 'egress/**'
- '.github/workflows/*-egress.yaml'
- '.github/workflows/*-common.yaml'
release:
types: [released]
jobs:
validate:
uses: ./.github/workflows/validate-config-common.yaml
with:
directory: egress
deploy:
if: github.repository_owner == 'GSA-TTS'
needs: validate
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 }}
space-suffix: "-public"
- name: Copy common files
run: cp -an common/. egress/
- name: Deploy application
run: cf push
--vars-file vars.yaml
--var ENVIRONMENT_NAME=${{ steps.cf-setup.outputs.target-environment }}
--strategy rolling
working-directory: egress