45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Budibase Release Docker Selfhost
|
|
|
|
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
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
- 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
|
|
|
|
- name: 'Get Previous tag'
|
|
id: previoustag
|
|
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
|
|
|
- name: Build/release Docker images (Self Host)
|
|
run: |
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
|
yarn build
|
|
yarn build:docker:selfhost
|
|
env:
|
|
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
|
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
|
|
|