-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (41 loc) · 1.29 KB
/
remove_ingress_job.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "[Job] Remove ingress"
on:
workflow_call:
inputs:
environment_config_json:
description: 'Environment config JSON'
required: true
type: string
secrets:
aws_access_key_id:
description: 'AWS Access Key ID'
required: true
aws_secret_access_key:
description: 'AWS Secret Access Key'
required: true
defaults:
run:
shell: bash
jobs:
remove_ingress:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: unfor19/install-aws-cli-action@v1
name: Run Against Image/aws-cli-action
- name: Manage Ingress/Configure AWS Credentials
uses: aws-actions/[email protected]
with:
aws-access-key-id: ${{ secrets.aws_access_key_id }}
aws-secret-access-key: ${{ secrets.aws_secret_access_key }}
aws-region: eu-west-1
role-duration-seconds: 900
role-session-name: OPGModernisingLPATerraformGithubAction
- uses: actions/[email protected]
with:
python-version: '3.9'
check-latest: true
- name: remove_ingress
run: |
pip install -r ./scripts/ci_ingress/requirements.txt
python ./scripts/ci_ingress/ci_ingress.py ${{ inputs.environment_config_json }}