From 4c3d9f9524fa3f54b658cc01dad967f321124c4e Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Tue, 20 Feb 2024 10:35:51 +0100 Subject: [PATCH] chore(ci): renamed master.yaml to master.yml. Signed-off-by: Federico Di Pierro --- .github/workflows/master.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000000..d62d7bf859 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,44 @@ +name: Master CI - deploys terraform and prow + +on: + push: + branches: [master] + +concurrency: + group: master-CI + cancel-in-progress: false + +jobs: + deploy-terraform: + permissions: + id-token: write + contents: read + runs-on: ubuntu-22.04 + steps: + - name: Checkout test-infra ⤵️ + uses: actions/checkout@v4 + + - 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@v4 + + - name: Deploy prow + env: + PROW_HMAC_TOKEN: ${{ secrets.PROW_HMAC_TOKEN }} + PROW_OAUTH_TOKEN: ${{ secrets.PROW_OAUTH_TOKEN }} + PROW_SERVICE_ACCOUNT_JSON: ${{ secrets.PROW_SERVICE_ACCOUNT_JSON }} + run: | + ./tools/deploy_prow.sh