turning on prod deploy again, adding github release to selfhost job

This commit is contained in:
Martin McKeaveney 2021-12-16 19:24:07 +01:00
parent 4356a84853
commit 5887fb6e9b
2 changed files with 12 additions and 8 deletions

View File

@ -9,6 +9,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
fetch_depth: 0
- name: Tag and release Docker images (Self Host) - name: Tag and release Docker images (Self Host)
run: | run: |
@ -39,12 +41,6 @@ jobs:
- name: Setup Helm - name: Setup Helm
uses: azure/setup-helm@v1 uses: azure/setup-helm@v1
id: helm-install id: helm-install
# - run: helm package charts/budibase
# - uses: actions/checkout@v2
# with:
# ref: gh-pages
# - name: Build and release helm chart # - name: Build and release helm chart
# run: | # run: |
@ -52,12 +48,20 @@ jobs:
# git config user.email "<>" # git config user.email "<>"
# mv budibase-${{ env.RELEASE_VERSION }}.tgz docs # mv budibase-${{ env.RELEASE_VERSION }}.tgz docs
# helm repo index docs # helm repo index docs
# git checkout gh-pages
# git add -A # git add -A
# git commit -m "Helm Release: ${{ env.RELEASE_VERSION }}" # git commit -m "Helm Release: ${{ env.RELEASE_VERSION }}"
# git push # git push
# env: # env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public
# full_commit_message: "Helm Release: ${{ env.RELEASE_VERSION }}"
- name: Perform Github Release - name: Perform Github Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:

View File

@ -3,7 +3,7 @@ name: Budibase Release
on: on:
push: push:
branches: branches:
- test - master
env: env:
POSTHOG_TOKEN: ${{ secrets.POSTHOG_TOKEN }} POSTHOG_TOKEN: ${{ secrets.POSTHOG_TOKEN }}
@ -59,7 +59,7 @@ jobs:
# - name: Pull values.yaml from budibase-infra # - name: Pull values.yaml from budibase-infra
# run: | # run: |
# curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ [c3a7a9d12] # curl -H "Authorization: token ${{ secrets.GH_PERSONAL_TOKEN }}" \ [c3a7a9d12]
# -H 'Accept: application/vnd.github.v3.raw' \ # -H 'Accept: application/vnd.github.v3.raw' \
# -o values.preprod.yaml \ # -o values.preprod.yaml \
# -L https://api.github.com/repos/budibase/budibase-infra/contents/kubernetes/values.preprod.yaml # -L https://api.github.com/repos/budibase/budibase-infra/contents/kubernetes/values.preprod.yaml