Bump the all-dependencies group across 1 directory with 12 updates #347
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build-Deploy-Preprod | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
permissions: | |
contents: "read" | |
id-token: "write" | |
jobs: | |
build: | |
name: Bygg og deploy til dev-fss | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'gradle' | |
- name: Test and build | |
env: | |
GPR_API_KEY: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./gradlew wrapper --gradle-version=8.5 | |
./gradlew test build --no-daemon | |
- name: Generer SBOM | |
run: ./gradlew cyclonedxBom | |
- uses: nais/docker-build-push@v0 | |
id: docker-push | |
with: | |
team: teamfamilie | |
tag: latest | |
byosbom: build/resources/main/META-INF/sbom/application.cdx.json | |
outputs: | |
image: ${{ steps.docker-push.outputs.image }} | |
deploy-dev: | |
name: Deploy to dev-fss | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy til dev-fss | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
APIKEY: ${{ secrets.DEPLOY_APIKEY }} | |
CLUSTER: dev-fss | |
RESOURCE: nais/dev-fss.yml | |
VAR: image=${{ needs.build.outputs.image }} |