Skip to content

Commit

Permalink
update(ci): added proper iam role to master CI.
Browse files Browse the repository at this point in the history
Renamed postsubmit to master.
Fixes to PR ci.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed May 17, 2023
1 parent e651475 commit 251882b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 53 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:

- name: Install deps
run: |
apt update && apt install curl tar
curl -L "$(curl -Ls https://api.github.com/repos/accurics/terrascan/releases/latest | grep -o -E "https://.+?_Linux_x86_64.tar.gz")" > terrascan.tar.gz
tar -xf terrascan.tar.gz
install terrascan /usr/local/bin
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Master CI - deploys terraform and prow

on:
push:
branches:
- master

jobs:
deploy-terraform:
runs-on: ubuntu-22.04
steps:
- name: Checkout test-infra ⤵️
uses: actions/checkout@v3

- name: Configure AWS credentials 🔧⚙️
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: "arn:aws:iam::292999226676:role/github_actions-test-infra-cluster"
aws-region: eu-west-1

- name: Deploy terraform
run: |
./tools/deploy_terraform.sh
deploy-prow:
runs-on: ubuntu-22.04
needs: deploy-terraform
steps:
- name: Checkout test-infra ⤵️
uses: actions/checkout@v3

- name: Install deps ⛓️
run: |
sudo apt update && sudo apt install -y which
- name: Deploy prow
run: |
./tools/deploy_prow.sh
52 changes: 0 additions & 52 deletions .github/workflows/postsubmit.yaml

This file was deleted.

0 comments on commit 251882b

Please sign in to comment.