build: bump golang 1.26.5 #66
This file contains hidden or 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 and deploy clamav-rest | |
| on: | |
| push: | |
| paths-ignore: | |
| - '*.md' | |
| env: | |
| NAME: clamav-rest | |
| FEATURE_REPOSITORY: oci://europe-north1-docker.pkg.dev/nais-io/nais/feature | |
| jobs: | |
| check: | |
| name: Check and test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # ratchet:actions/checkout@v5 | |
| - uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # ratchet:jdx/mise-action@v4 | |
| - name: Check | |
| run: mise run check | |
| - name: Test | |
| run: mise run test | |
| build_and_push: | |
| needs: | |
| - check | |
| outputs: | |
| version: "${{ steps.build-push-sign.outputs.version }}" | |
| permissions: | |
| contents: read | |
| id-token: write | |
| name: Build and push | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # ratchet:actions/checkout@v5 | |
| - uses: nais/platform-build-push-sign@df590279b21bc5978519685752f9eaddd546043c # ratchet:nais/platform-build-push-sign@main | |
| id: build-push-sign | |
| with: | |
| name: ${{ env.NAME }} | |
| google_service_account: gh-${{ env.NAME }} | |
| push: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' }} | |
| workload_identity_provider: ${{ secrets.NAIS_IO_WORKLOAD_IDENTITY_PROVIDER }} | |
| - uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # ratchet:azure/setup-helm@v4 | |
| name: "Setup Helm" | |
| with: | |
| version: "v3.18.3" | |
| - name: Update values.yaml | |
| uses: fjogeleit/yaml-update-action@04ff6ec06568fd21197db746472e36cc425de850 # ratchet:fjogeleit/yaml-update-action@main | |
| with: | |
| valueFile: 'charts/values.yaml' | |
| propertyPath: 'image.tag' | |
| value: ${{ steps.build-push-sign.outputs.version }} | |
| commitChange: false | |
| - name: Build Chart | |
| run: |- | |
| sed -i "s/^version: .*/version: ${{ steps.build-push-sign.outputs.version }}/g" charts/Chart.yaml | |
| helm package charts | |
| - name: Push Chart | |
| run: |- | |
| helm push ${{ env.NAME }}*.tgz ${{ env.FEATURE_REPOSITORY }} | |
| deploy: | |
| name: Deploy | |
| needs: | |
| - build_and_push | |
| runs-on: fasit-deploy | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: nais/fasit-deploy@9f870e05e92cde6cfd827b13384ec09e80be65fd # ratchet:nais/fasit-deploy@v4 | |
| with: | |
| chart: ${{ env.FEATURE_REPOSITORY }}/${{ env.NAME }} | |
| version: ${{ needs.build_and_push.outputs.version }} | |
| targets: | | |
| [ | |
| { "target": { "kind": "tenant", "tenant": "nav", "environment": "dev" }, "wait": true }, | |
| { "target": { "kind": "tenant", "tenant": "nav" } }, | |
| { "target": { "kind": "tenant", "tenant": "ldir" } }, | |
| { "target": { "kind": "tenant", "tenant": "atil" } }, | |
| { "target": { "kind": "onprem", "tenant": "nav", "environment": "dev-fss" }, "wait": true }, | |
| { "target": { "kind": "onprem", "tenant": "nav", "environment": "prod-fss" } } | |
| ] |