Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 .env from defaults
run: cp .env.default .env

- name: Build
run: ahoy build y
env:
COMPOSER_AUTH: ""
DOCKER_BUILDKIT: 1
Loading