Skip to content

Commit

Permalink
feat: change to featuresv2 and update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Muni10 committed Aug 14, 2023
1 parent 533bf0b commit 231f27e
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 107 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/build_and_push_chart.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/build_and_push_image.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and deploy
on:
push:
branches:
- main
env:
NAME: hahaha
FEATURE_REPOSITORY: oci://europe-north1-docker.pkg.dev/nais-io/nais/feature

jobs:
build_and_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@v3

- 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: "v3.12.0"

- 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 }}
rollout:
needs:
- build_and_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_and_push.outputs.version }}
feature_name: ${{ env.NAME }}
File renamed without changes.
8 changes: 8 additions & 0 deletions charts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v2
name: hahaha
sources:
- https://github.com/nais/hahaha/tree/main/charts
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.16.0"
21 changes: 21 additions & 0 deletions charts/Feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dependencies:
- allOf:
- naiserator
environmentKinds:
- tenant
- onprem
- legacy
values:
alert.enabled:
displayName: Enable alert
config:
type: bool
apiServerCIDR:
description: CIDR for the API server
displayName: API server CIDR
config:
type: string
image.tag:
displayName: Image tag
config:
type: string
24 changes: 0 additions & 24 deletions charts/hahaha/Chart.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 231f27e

Please sign in to comment.