Skip to content

ci: correct image tag #35

ci: correct image tag

ci: correct image tag #35

Workflow file for this run

name: main
on:
push:
branches:
- master
jobs:
build:
name: Build and push
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
strategy:
matrix:
module: [azure, idporten]
steps:
- name: Checkout latest code
uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # ratchet:actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf # ratchet:actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Gradle wrapper cache
uses: actions/cache@2b250bc32ad02700b996b496c14ac8c2840a2991 # ratchet:actions/cache@v2
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper-
- name: Verify Gradle wrapper checksum
uses: gradle/wrapper-validation-action@55e685c48d84285a5b0418cd094606e199cca3b6 # ratchet:gradle/wrapper-validation-action@v1
- name: Build with Gradle
run: ./gradlew clean wonderwalled-${{ matrix.module }}:build wonderwalled-${{ matrix.module }}:shadowJar
- uses: nais/platform-build-push-sign@fb7da39ee56c8904ed15c02705a1780cb278a65b # ratchet:nais/platform-build-push-sign@main
id: build_push_sign
with:
name: ./wonderwalled-${{ matrix.module }}
dockerfile: ./wonderwalled-${{ matrix.module }}/Dockerfile
google_service_account: gh-wonderwalled
multi-platform: true
push: true
workload_identity_provider: ${{ secrets.NAIS_IO_WORKLOAD_IDENTITY_PROVIDER }}
- uses: nais/deploy/actions/deploy@fff9ae049178e5d3dca5c9600cf78acce63c0708 # ratchet:nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .nais/${{ matrix.module }}.yaml,.nais/${{ matrix.module }}-token-generator.yaml
IMAGE: ${{ steps.build_push_sign.outputs.tag }}
- uses: nais/deploy/actions/deploy@fff9ae049178e5d3dca5c9600cf78acce63c0708 # ratchet:nais/deploy/actions/deploy@v1
if: matrix.module == 'azure'
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .nais/azure-token-generator-nav.yaml
IMAGE: ${{ steps.build_push_sign.outputs.tag }}