Skip to content

Commit

Permalink
Build for non-main branches, and configure dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenlj committed Apr 22, 2024
1 parent fc81cc9 commit ea1307b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 5
groups:
opentelemetry:
patterns:
- opentelemetry*
- tracing-opentelemetry
k8s:
patterns:
- kube
- k8s-openapi
axum:
patterns:
- axum
- axum-server
- axum-test
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 5
12 changes: 9 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Build and deploy

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- main

env:
NAME: hahaha
FEATURE_REPOSITORY: oci://europe-north1-docker.pkg.dev/nais-io/nais/feature
Expand All @@ -26,7 +30,7 @@ jobs:
google_service_account: gh-${{ env.NAME }}
workload_identity_provider: ${{ secrets.NAIS_IO_WORKLOAD_IDENTITY_PROVIDER }}
multi-platform: true
push: true
push: "${{ github.ref == 'refs/heads/main' }}"

- uses: azure/setup-helm@v3
name: "Setup Helm"
Expand All @@ -39,10 +43,12 @@ jobs:
helm package charts
- name: Push Chart
if: github.ref == 'refs/heads/main'
run: |-
helm push ${{ env.NAME }}*.tgz ${{ env.FEATURE_REPOSITORY }}
rollout:
if: github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main'
needs:
- build_and_push
runs-on: fasit-deploy
Expand Down

0 comments on commit ea1307b

Please sign in to comment.