2021-10-15 02:33:27 +13:00
|
|
|
name: Budibase Release Selfhost
|
2021-10-08 22:37:08 +13:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
POSTHOG_TOKEN: ${{ secrets.POSTHOG_TOKEN }}
|
|
|
|
INTERCOM_TOKEN: ${{ secrets.INTERCOM_TOKEN }}
|
|
|
|
POSTHOG_URL: ${{ secrets.POSTHOG_URL }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-12-01 04:47:16 +13:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-12-14 01:49:02 +13:00
|
|
|
|
2021-10-08 22:37:08 +13:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2021-11-18 23:59:35 +13:00
|
|
|
node-version: 14.x
|
2021-10-08 22:37:08 +13:00
|
|
|
- run: yarn
|
|
|
|
- run: yarn bootstrap
|
|
|
|
|
|
|
|
- name: Configure AWS Credentials
|
|
|
|
uses: aws-actions/configure-aws-credentials@v1
|
|
|
|
with:
|
|
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
aws-region: eu-west-1
|
|
|
|
|
2021-11-23 06:25:57 +13:00
|
|
|
- name: 'Get Previous tag'
|
|
|
|
id: previoustag
|
|
|
|
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
|
|
|
|
2021-10-08 22:37:08 +13:00
|
|
|
- name: Build/release Docker images (Self Host)
|
|
|
|
run: |
|
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
|
|
|
yarn build
|
2021-11-23 06:25:57 +13:00
|
|
|
yarn build:docker:selfhost
|
2021-10-08 22:37:08 +13:00
|
|
|
env:
|
|
|
|
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
2021-11-23 06:25:57 +13:00
|
|
|
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
|
2021-10-08 22:37:08 +13:00
|
|
|
|
|
|
|
- run: yarn release:helm
|
2021-12-09 07:00:59 +13:00
|
|
|
env:
|
|
|
|
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
|
2021-10-08 22:37:08 +13:00
|
|
|
|
2021-12-10 00:05:43 +13:00
|
|
|
- name: Configure Git
|
|
|
|
run: |
|
|
|
|
git config user.name "Budibase Helm Bot"
|
|
|
|
git config user.email "<>"
|
|
|
|
|
2021-10-08 22:37:08 +13:00
|
|
|
- name: Run chart-releaser
|
2021-12-10 00:05:43 +13:00
|
|
|
uses: helm/chart-releaser-action@v1.2.0
|
2021-10-08 22:37:08 +13:00
|
|
|
env:
|
2021-12-10 00:05:43 +13:00
|
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|