1
0
Fork 0
mirror of synced 2024-08-09 07:08:01 +12:00
budibase/.github/workflows/release-singleimage-test.yml

70 lines
2.1 KiB
YAML
Raw Normal View History

2023-10-03 03:08:41 +13:00
name: Test
2022-06-27 23:13:33 +12:00
on:
2023-10-14 01:35:13 +13:00
workflow_dispatch:
2022-06-28 00:43:54 +12:00
env:
2022-06-28 01:37:46 +12:00
CI: true
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2022-06-28 00:43:54 +12:00
REGISTRY_URL: registry.hub.docker.com
2023-10-07 00:36:41 +13:00
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
2022-06-27 23:13:33 +12:00
jobs:
build:
name: "build"
2022-06-27 23:13:33 +12:00
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
2022-06-27 23:13:33 +12:00
steps:
- name: "Checkout"
2023-10-03 11:46:00 +13:00
uses: actions/checkout@v4
with:
2023-06-08 00:56:35 +12:00
submodules: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
2023-10-03 11:46:00 +13:00
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
2023-10-06 22:52:54 +13:00
cache: "yarn"
- name: Setup QEMU
2023-10-03 11:46:00 +13:00
uses: docker/setup-qemu-action@v3
2023-10-14 01:35:13 +13:00
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Run Yarn
run: yarn
- name: Run Yarn Build
2023-10-07 01:32:17 +13:00
run: yarn build --scope @budibase/server --scope @budibase/worker
2023-10-03 10:48:45 +13:00
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_API_KEY }}
- name: Get the latest release version
id: version
run: |
release_version=$(cat lerna.json | jq -r '.version')
echo $release_version
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
- name: Tag and release Budibase service docker image
2023-10-03 03:36:10 +13:00
uses: docker/build-push-action@v5
with:
context: .
2023-10-03 07:27:24 +13:00
push: true
2023-10-05 07:29:36 +13:00
pull: true
2023-10-14 01:09:17 +13:00
platforms: linux/amd64,linux/arm64
2023-10-03 10:50:43 +13:00
tags: budibase/budibase-test:test
file: ./hosting/single/Dockerfile.v2
2023-10-03 10:50:43 +13:00
cache-from: type=registry,ref=budibase/budibase-test:test
2023-10-03 05:14:15 +13:00
cache-to: type=inline
2023-10-14 01:09:17 +13:00
- name: Tag and release Budibase Azure App Service docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64
build-args: TARGETBUILD=aas
tags: budibase/budibase-test:aas
file: ./hosting/single/Dockerfile.v2