Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

ci: substitute image tag in chart #12

ci: substitute image tag in chart

ci: substitute image tag in chart #12

Workflow file for this run

name: Build and push image and chart
on:
push:
branches:
- main
env:
NAME: hunter2
FEATURE_REPOSITORY: oci://europe-north1-docker.pkg.dev/nais-io/nais/feature
jobs:
build_push:
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@v4
- uses: nais/platform-build-push-sign@main
id: build-push-sign
with:
name: ${{ env.NAME }}
google_service_account: gh-${{ env.NAME }}
workload_identity_provider: ${{ secrets.NAIS_IO_WORKLOAD_IDENTITY_PROVIDER }}
push: true
- uses: azure/setup-helm@v3
name: "Setup Helm"
with:
version: "3.12.0"
- name: Build Chart
run: |-
yq e '.version = "${{ steps.build-push-sign.outputs.version }}"' --inplace "charts/Chart.yaml"
yq e '.image.tag = "${{ steps.build-push-sign.outputs.version }}"' --inplace "charts/values.yaml"
helm package charts
- name: Push Chart
run: |-
helm push ${{ env.NAME }}*.tgz ${{ env.FEATURE_REPOSITORY }}
rollout:
needs:
- build_push
runs-on: fasit-deploy
permissions:
id-token: write
steps:
- uses: nais/fasit-deploy@v2
with:
chart: ${{ env.FEATURE_REPOSITORY }}/${{ env.NAME }}
version: ${{ needs.build_push.outputs.version }}