From faa6cadaa9827d7be3be53a78bb11d86e20e7a3f Mon Sep 17 00:00:00 2001 From: Mike Houston Date: Tue, 21 May 2024 13:54:38 +0100 Subject: [PATCH] Add environment workflow input --- .github/workflows/cicd-3-deploy.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cicd-3-deploy.yaml b/.github/workflows/cicd-3-deploy.yaml index 69501ad..e19c654 100644 --- a/.github/workflows/cicd-3-deploy.yaml +++ b/.github/workflows/cicd-3-deploy.yaml @@ -7,6 +7,10 @@ on: description: "This is the tag that is going to be deployed" required: true default: "latest" + environment: + description: "The environment you want to deploy to" + type: environment + required: true jobs: metadata: @@ -54,6 +58,9 @@ jobs: runs-on: ubuntu-latest needs: [metadata] timeout-minutes: 10 + permissions: + id-token: write + environment: ${{ env.environment }} steps: - name: Checkout uses: actions/checkout@v4