Skip to content

Bump ktorVersion from 2.3.5 to 2.3.6 #198

Bump ktorVersion from 2.3.5 to 2.3.6

Bump ktorVersion from 2.3.5 to 2.3.6 #198

Workflow file for this run

name: "Build and deploy aivia"
on:
push:
paths-ignore:
- "*.md"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: "build"
runs-on: "ubuntu-latest"
permissions:
contents: read
id-token: write
steps:
- uses: "actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11" # ratchet:actions/checkout@v3
- uses: "gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4" # ratchet:gradle/wrapper-validation-action@v1
- uses: "actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84" # ratchet:actions/cache@v3
with:
"path": "~/.gradle/caches"
"key": "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}"
"restore-keys": "${{ runner.os }}-gradle-"
- name: Install cosign
uses: sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8 # ratchet:sigstore/cosign-installer@main
with:
cosign-release: 'v2.0.0'
- name: Verify distroless base image
run: cosign verify --certificate-identity "keyless@distroless.iam.gserviceaccount.com" --certificate-oidc-issuer "https://accounts.google.com" gcr.io/distroless/java17-debian11:nonroot
- uses: "actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0" # ratchet:actions/setup-java@v3
with:
"java-version": "17"
"distribution": "temurin"
- name: "compile and run tests"
run: "./gradlew build"
- uses: nais/platform-build-push-sign@main # ratchet:exclude
id: build-push-sign
with:
name: aivia
google_service_account: gh-aivia
push: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' }}
workload_identity_provider: ${{ secrets.NAIS_IO_WORKLOAD_IDENTITY_PROVIDER }}
outputs:
image: "${{ steps.build-push-sign.outputs.tag }}"
deploy:
name: "deploy for testing"
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
- uses: "actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11" # ratchet:actions/checkout@v3
- uses: nais/deploy/actions/deploy@v1 # ratchet:exclude
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: src/test/resources/aiven-topics.yaml,src/test/resources/configmap.yaml,nais/nais.yaml
VAR: image=${{ needs.build.outputs.image }}