diff --git a/.github/workflows/build-master.yaml b/.github/workflows/build-master.yaml index 3936e0069..b3aa6cd37 100644 --- a/.github/workflows/build-master.yaml +++ b/.github/workflows/build-master.yaml @@ -25,14 +25,14 @@ jobs: issues: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: java-version: 21 distribution: temurin cache: gradle - name: Setup Gradle to generate and submit dependency graphs - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3 with: dependency-graph: generate-and-submit @@ -64,7 +64,7 @@ jobs: run: echo "IMAGE=${BASE_IMAGE}:${TAG}" >> $GITHUB_ENV - name: Lukk gamle issues - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -87,7 +87,7 @@ jobs: - name: Opprett deployment issue id: createdeployissue if: success() - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -102,7 +102,7 @@ jobs: }); - name: Deploy til preprod - uses: nais/deploy/actions/deploy@v1 + uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: dev-fss diff --git a/.github/workflows/build-pull-request.yaml b/.github/workflows/build-pull-request.yaml index 2a8002252..60866f59d 100644 --- a/.github/workflows/build-pull-request.yaml +++ b/.github/workflows/build-pull-request.yaml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: java-version: 21 distribution: temurin diff --git a/.github/workflows/deploy-alerts.yml b/.github/workflows/deploy-alerts.yml index 223f6f3ae..a4ebdb477 100644 --- a/.github/workflows/deploy-alerts.yml +++ b/.github/workflows/deploy-alerts.yml @@ -16,13 +16,13 @@ jobs: cluster: [dev-fss, prod-fss] steps: - uses: actions/checkout@v4 - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: ${{ matrix.cluster }} RESOURCE: nais/alerts/alert-manager.yml VAR: cluster=${{ matrix.cluster }} - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: ${{ matrix.cluster }} diff --git a/.github/workflows/deploy-preprod.yml b/.github/workflows/deploy-preprod.yml index f16f6f89b..00b93bf20 100644 --- a/.github/workflows/deploy-preprod.yml +++ b/.github/workflows/deploy-preprod.yml @@ -14,7 +14,7 @@ jobs: contents: read steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: java-version: 21 distribution: temurin @@ -43,7 +43,7 @@ jobs: run: echo "IMAGE=${BASE_IMAGE}:${TAG}" >> $GITHUB_ENV - name: Deploy til preprod - uses: nais/deploy/actions/deploy@v1 + uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: dev-fss diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 12f638166..764946e23 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Slash command dispatch - uses: peter-evans/slash-command-dispatch@v3.0.1 + uses: peter-evans/slash-command-dispatch@v4.0.0 with: token: ${{ secrets.LOS_TOKEN }} commands: promote diff --git a/.github/workflows/kafka.yml b/.github/workflows/kafka.yml index b186c4c64..25ea31de9 100644 --- a/.github/workflows/kafka.yml +++ b/.github/workflows/kafka.yml @@ -13,31 +13,31 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: dev-gcp VAR: kafka-pool=nav-dev RESOURCE: nais/kafka/produksjonsstyring-k9sak.yml - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: dev-gcp VAR: kafka-pool=nav-dev RESOURCE: nais/kafka/produksjonsstyring-k9punsj.yml - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: dev-gcp VAR: kafka-pool=nav-dev RESOURCE: nais/kafka/aapen-k9statistikk-behandling-v2.yml - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: dev-gcp VAR: kafka-pool=nav-dev RESOURCE: nais/kafka/aapen-k9statistikk-sak-v2.yml - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: dev-gcp @@ -50,31 +50,31 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: prod-gcp VAR: kafka-pool=nav-prod RESOURCE: nais/kafka/produksjonsstyring-k9sak.yml - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: prod-gcp VAR: kafka-pool=nav-prod RESOURCE: nais/kafka/produksjonsstyring-k9punsj.yml - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: prod-gcp VAR: kafka-pool=nav-prod RESOURCE: nais/kafka/oppgavemeldinger-klage-til-los.yml - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: prod-gcp VAR: kafka-pool=nav-prod RESOURCE: nais/kafka/aapen-k9statistikk-behandling-v2.yml - - uses: nais/deploy/actions/deploy@v1 + - uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: prod-gcp diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index 1700fc551..85a0238d6 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -16,7 +16,7 @@ jobs: - name: Henter informasjon fra issuet id: issue_comment - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.issues.get( { @@ -43,7 +43,7 @@ jobs: ref: ${{ steps.issue_comment.outputs.sha }} - name: Promoter til cluster og namespace - uses: nais/deploy/actions/deploy@v1 + uses: nais/deploy/actions/deploy@v2 env: APIKEY: ${{ secrets.DEPLOY_KEY }} CLUSTER: ${{ env.CLUSTER }} @@ -51,7 +51,7 @@ jobs: - name: Oppdater kommentar med deployment status ved feil if: failure() - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const issue = { owner: context.issue.owner, @@ -65,7 +65,7 @@ jobs: - name: Oppdater kommentar med deployment status if: success() - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const issue = { owner: context.issue.owner, @@ -81,7 +81,7 @@ jobs: echo "COMMIT_SHA=$(git rev-parse ${{ env.TAG }})" >> $GITHUB_ENV - name: Tagg prodsatt commit if: success() && env.CLUSTER == 'prod-fss' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: |