-
Notifications
You must be signed in to change notification settings - Fork 151
Helm & docker improvements #1561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9aed385
ff483ce
945a72f
07f61b6
91b51b3
2251858
72fa219
8fdc062
a86027f
09d91b7
3a9ccbd
0a378aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,9 +24,9 @@ jobs: | |
| - name: Set up JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: '21' | ||
| cache: 'sbt' | ||
| distribution: "zulu" | ||
| java-version: "21" | ||
| cache: "sbt" | ||
|
|
||
| - uses: sbt/setup-sbt@v1 | ||
|
|
||
|
|
@@ -49,10 +49,9 @@ jobs: | |
| working-directory: ./ui | ||
|
|
||
| publish: | ||
| if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' | ||
| needs: [ verify ] | ||
| needs: [verify] | ||
| runs-on: ubuntu-24.04 | ||
|
|
||
| if: github.ref == 'refs/heads/master' | ||
| steps: | ||
| - name: Check-out repository | ||
| id: repo-checkout | ||
|
|
@@ -61,9 +60,9 @@ jobs: | |
| - name: Set up JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: '21' | ||
| cache: 'sbt' | ||
| distribution: "zulu" | ||
| java-version: "21" | ||
| cache: "sbt" | ||
|
|
||
| - uses: sbt/setup-sbt@v1 | ||
|
|
||
|
|
@@ -83,40 +82,7 @@ jobs: | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Publish docker image | ||
| run: sbt docker/docker:publish | ||
|
|
||
| deploy: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not necessarily in scope, but I think this can be removed - we don't publish tag-based releases. It was a failed experiments some years ago
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed |
||
| if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') | ||
| needs: [ verify ] | ||
| runs-on: ubuntu-24.04 | ||
|
|
||
| steps: | ||
| - name: Check-out repository | ||
| id: repo-checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'zulu' | ||
| java-version: '21' | ||
| cache: 'sbt' | ||
|
|
||
| - name: Extract version | ||
| run: | | ||
| version=${GITHUB_REF/refs\/tags\/v/} | ||
| echo "VERSION=$version" >> $GITHUB_ENV | ||
|
|
||
| - name: Publish release notes | ||
| uses: release-drafter/release-drafter@v5 | ||
| with: | ||
| config-name: release-drafter.yaml | ||
| publish: true | ||
| name: "v${{ env.VERSION }}" | ||
| tag: "v${{ env.VERSION }}" | ||
| version: "v${{ env.VERSION }}" | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: sbt 'set docker / version := "'${GITHUB_RUN_ID}-${GITHUB_SHA:0:7}'"' docker/docker:publish | ||
|
|
||
| label: | ||
| # only for PRs by softwaremill-ci | ||
|
|
@@ -126,5 +92,5 @@ jobs: | |
| auto-merge: | ||
| # only for PRs by softwaremill-ci | ||
| if: github.event.pull_request.user.login == 'softwaremill-ci' | ||
| needs: [ verify, label ] | ||
| needs: [verify, label] | ||
| uses: softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,15 +134,3 @@ jobs: | |
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Publish Helm Chart | ||
| id: helm-publish-chart | ||
| uses: stefanprodan/[email protected] | ||
| with: | ||
| token: ${{ secrets.CR_TOKEN }} | ||
| charts_dir: helm | ||
| charts_url: https://softwaremill.github.io/sml-helm-public-repo | ||
| owner: softwaremill | ||
| repository: sml-helm-public-repo | ||
| helm_version: 3.10.0 | ||
| linting: off | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ kind: ConfigMap | |
| metadata: | ||
| name: {{ include "bootzooka.fullname" . }}-config | ||
| data: | ||
| JAVA_OPTS: "{{ .Values.bootzooka.java_opts }}" | ||
| SMTP_ENABLED: "{{ .Values.bootzooka.smtp.enabled }}" | ||
| SMTP_HOST: "{{ .Values.bootzooka.smtp.host }}" | ||
| SMTP_PORT: "{{ .Values.bootzooka.smtp.port }}" | ||
|
|
@@ -20,3 +21,4 @@ data: | |
| OTEL_EXPORTER_OTLP_PROTOCOL: "{{ .Values.bootzooka.otel.protocol }}" | ||
| OTEL_SERVICE_NAME: "{{ .Values.bootzooka.otel.service_name }}" | ||
| OTEL_METRIC_EXPORT_INTERVAL: "{{ .Values.bootzooka.otel.metric_export_interval }}" | ||
| LOGBACK_JSON_ENCODE: "{{ .Values.bootzooka.logback_json_encode }}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this doesn't seem to be used anywhere in the code, are you sure this does something? ;)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bump
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @paapug this got merged, but is this setting needed? |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need the
github.event_name != 'pull_request'check? so that this doesn't run on PRs to master?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's enough, for pull requests the
github.refis set torefs/pull/<pr_number>/merge.