2021-12-13 17:30:12 +01:00
|
|
|
name: Budibase Release Docker Selfhost
|
2021-10-08 11:37:08 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-12-15 18:43:12 +01:00
|
|
|
|
|
|
|
- name: Tag and release Docker images (Self Host)
|
2021-10-08 11:37:08 +02:00
|
|
|
run: |
|
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
2021-12-15 18:43:12 +01:00
|
|
|
|
|
|
|
# Get latest release version
|
|
|
|
sudo apt-get install -y jq
|
|
|
|
release_version=v$(cat lerna.json | jq -r '.version')
|
|
|
|
echo "::set-output name=release_version::$release_version"
|
|
|
|
|
|
|
|
# Pull apps and worker images
|
|
|
|
docker pull budibase/apps:$release_version
|
|
|
|
docker pull budibase/worker:$release_version
|
|
|
|
|
|
|
|
# Tag apps and worker images
|
|
|
|
docker tag budibase/apps:$release_version $SELF_HOST_TAG
|
|
|
|
docker tag budibase/worker:$release_version $SELF_HOST_TAG
|
|
|
|
|
|
|
|
# Push images
|
|
|
|
docker push --all-tags budibase/apps
|
|
|
|
docker push --all-tags budibase/worker
|
2021-10-08 11:37:08 +02:00
|
|
|
env:
|
|
|
|
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
2021-12-15 18:43:12 +01:00
|
|
|
SELF_HOST_TAG: latest
|
|
|
|
|
|
|
|
# - name: Build and release helm chart
|
|
|
|
# run: |
|
|
|
|
# git config user.name "Budibase Helm Bot"
|
|
|
|
# git config user.email "<>"
|
|
|
|
# helm package charts/budibase
|
|
|
|
# git checkout gh-pages
|
|
|
|
# mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
|
|
|
|
# git commit -m "Helm Release: ${{ github.steps.version.outputs.release_version }}"
|
|
|
|
# git push
|
|
|
|
# env:
|
|
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
# - name: Perform github release
|
|
|
|
# run: |
|
|
|
|
# echo release
|
|
|
|
# env:
|
|
|
|
# GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|