Skip to content

Bump actions/checkout from 3 to 4 (#169) #23

Bump actions/checkout from 3 to 4 (#169)

Bump actions/checkout from 3 to 4 (#169) #23

---
# 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