testing selfhost job

This commit is contained in:
Martin McKeaveney 2021-12-17 14:58:03 +01:00
parent 5887fb6e9b
commit c42bb0fa40
4 changed files with 27 additions and 19 deletions

View File

@ -51,3 +51,11 @@ jobs:
namespace: budibase namespace: budibase
values: globals.appVersion=v${{ env.RELEASE_VERSION }} values: globals.appVersion=v${{ env.RELEASE_VERSION }}
name: budibase-prod name: budibase-prod
- name: Discord Webhook Action
uses: tsickert/discord-webhook@v4.0.0
with:
webhook-url: ${{ secrets.PROD_DEPLOY_WEBHOOK_URL }}
content: "Production Deployment Complete: ${{ env.RELEASE_VERSION }} deployed to budibase cloud."
embed-title: ${{ env.RELEASE_VERSION }}

View File

@ -17,7 +17,6 @@ jobs:
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
# Get latest release version # Get latest release version
sudo apt-get install -y jq
release_version=$(cat lerna.json | jq -r '.version') release_version=$(cat lerna.json | jq -r '.version')
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
release_tag=v$release_version release_tag=v$release_version
@ -66,4 +65,5 @@ jobs:
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
name: v${{ env.RELEASE_VERSION }} name: v${{ env.RELEASE_VERSION }}
tag_name: v${{ env.RELEASE_VERSION }}
generate_release_notes: true generate_release_notes: true

View File

@ -3,7 +3,7 @@ name: Budibase Release
on: on:
push: push:
branches: branches:
- master - test
env: env:
POSTHOG_TOKEN: ${{ secrets.POSTHOG_TOKEN }} POSTHOG_TOKEN: ${{ secrets.POSTHOG_TOKEN }}
@ -64,18 +64,18 @@ jobs:
# -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
# - name: Deploy to Preprod Environment - name: Deploy to Preprod Environment
# uses: deliverybot/helm@v1 uses: deliverybot/helm@v1
# with: with:
# release: budibase-preprod release: budibase-preprod
# namespace: budibase namespace: budibase
# chart: charts/budibase chart: charts/budibase
# token: ${{ github.token }} token: ${{ github.token }}
# values: | values: |
# globals.appVersion: ${{ steps.previoustag.outputs.tag }} globals.appVersion: ${{ steps.previoustag.outputs.tag }}
# value-files: >- value-files: >-
# [ [
# "charts/budibase/values.yaml" "charts/budibase/values.yaml"
# ] ]
# env: env:
# KUBECONFIG_FILE: '${{ secrets.PREPROD_KUBECONFIG }}' KUBECONFIG_FILE: '${{ secrets.PREPROD_KUBECONFIG }}'

View File

@ -23,7 +23,7 @@
"build": "lerna run build", "build": "lerna run build",
"publishdev": "lerna run publishdev", "publishdev": "lerna run publishdev",
"publishnpm": "yarn build && lerna publish --force-publish", "publishnpm": "yarn build && lerna publish --force-publish",
"release": "yarn build && lerna publish patch --yes --force-publish", "release": "lerna publish patch --yes --force-publish",
"release:develop": "yarn build && lerna publish prerelease --yes --force-publish --dist-tag develop", "release:develop": "yarn build && lerna publish prerelease --yes --force-publish --dist-tag develop",
"restore": "yarn run clean && yarn run bootstrap && yarn run build", "restore": "yarn run clean && yarn run bootstrap && yarn run build",
"nuke": "yarn run nuke:packages && yarn run nuke:docker", "nuke": "yarn run nuke:packages && yarn run nuke:docker",