From 3805a6506b6d59ece741750f20df9c7e01fa0d99 Mon Sep 17 00:00:00 2001 From: jackwrfuller Date: Fri, 27 Mar 2026 16:38:25 +1100 Subject: [PATCH 1/2] add basic workflow to check build --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..1a518f80 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build + +on: + pull_request: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + driver: docker + + - name: Install Ahoy + run: | + sudo wget -q https://github.com/ahoy-cli/ahoy/releases/download/v2.1.1/ahoy-bin-linux-amd64 -O /usr/local/bin/ahoy + sudo chmod +x /usr/local/bin/ahoy + + - name: Create Docker network + run: docker network create amazeeio-network || true + + - name: Create composer auth secret + run: echo '{}' > /tmp/composer-auth.json + + - name: Build + run: ahoy build y + env: + COMPOSER_AUTH: "" + DOCKER_BUILDKIT: 1 From a7283ed29adc44aba1e52e5f44b358d9a7112eac Mon Sep 17 00:00:00 2001 From: jackwrfuller Date: Fri, 27 Mar 2026 17:27:32 +1100 Subject: [PATCH 2/2] ensure ahoy build failures fail pipeline --- .ahoy.yml | 1 + .github/workflows/build.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.ahoy.yml b/.ahoy.yml index d2bb5137..6a8ae631 100644 --- a/.ahoy.yml +++ b/.ahoy.yml @@ -15,6 +15,7 @@ commands: build: usage: Build project locally (single-local architecture only). cmd: | + set -e cat .env | grep -v "#" | grep -v -e '^$' if [ "$1" == "y" ]; then env $(cat .env | grep -v "#" | xargs) docker buildx bake -f docker-compose.yml --no-cache cli --load diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a518f80..fab8c17b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,8 +26,8 @@ jobs: - name: Create Docker network run: docker network create amazeeio-network || true - - name: Create composer auth secret - run: echo '{}' > /tmp/composer-auth.json + - name: Create .env from defaults + run: cp .env.default .env - name: Build run: ahoy build y