Compare commits
2 commits
fdc05dd5e7
...
c14fa914f1
Author | SHA1 | Date | |
---|---|---|---|
c14fa914f1 | |||
828459af2d |
2 changed files with 8 additions and 7 deletions
|
@ -40,7 +40,7 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- name: Publish
|
||||
env:
|
||||
FORGEJO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
FORGEJO_TOKEN: ${{ secrets.REPO_TOKEN }}
|
||||
REPO: ${{ github.repository }}
|
||||
RELEASE_DIR: dist
|
||||
RELEASE_NOTES: /var/ci-os/templates/release-notes-template.md
|
||||
|
@ -58,11 +58,12 @@ jobs:
|
|||
|
||||
echo "packing $chart"
|
||||
helm package "$chart" -d dist
|
||||
cd dist
|
||||
curl --user "tommy:$FORGEJO_TOKEN" \
|
||||
--upload-file "$TAG.tgz" \
|
||||
https://code.252.no/api/packages/tommy/generic/$CHART_NAME/$CHART_VERSION/$TAG.tgz
|
||||
|
||||
curl --user ${{ github.repository_owner }}:${{ secrets.REGISTRY_TOKEN }} \
|
||||
--upload-file "dist/$TAG.tgz" \
|
||||
https://code.252.no/api/packages/${{ github.repository_owner }}/generic/$CHART_NAME/$CHART_VERSION/$TAG.tgz
|
||||
|
||||
cd ..
|
||||
echo "$RELEASE_NOTES"
|
||||
echo "$TAG"
|
||||
forgejo-release create
|
||||
|
|
|
@ -31,7 +31,7 @@ spec:
|
|||
- -c
|
||||
- |
|
||||
dispatch database init || true
|
||||
env: &dispatchEnv
|
||||
env:
|
||||
- name: MJML_PATH
|
||||
value: /node_modules/.bin
|
||||
- name: DISPATCH_UI_URL
|
||||
|
@ -57,7 +57,7 @@ spec:
|
|||
imagePullPolicy: {{ coalesce $.Values.image.pullPolicy .pullPolicy }}
|
||||
{{- end }}
|
||||
command: ["dispatch", "database", "upgrade"]
|
||||
env: &dispatchEnv
|
||||
env:
|
||||
- name: MJML_PATH
|
||||
value: /node_modules/.bin
|
||||
- name: DISPATCH_UI_URL
|
||||
|
|
Loading…
Reference in a new issue