From 5d3d765e772aba7250187c6686e020c83ec447c6 Mon Sep 17 00:00:00 2001 From: Buster Neece Date: Fri, 3 Nov 2023 07:01:30 -0500 Subject: [PATCH] Set up Depot for local builds too. --- .github/workflows/default.yml | 1 - Makefile | 15 +++++++++++++-- depot.json | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 depot.json diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index adafdf9cd..c114a5381 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -193,7 +193,6 @@ jobs: - name: Publish to Docker Hub uses: depot/build-push-action@v1 with: - project: qvjwqlcn6p context: . push: true platforms: linux/amd64,linux/arm64 diff --git a/Makefile b/Makefile index 675a2532d..b59ecdeb5 100644 --- a/Makefile +++ b/Makefile @@ -30,13 +30,24 @@ build: # Rebuild all containers and restart docker-compose build $(MAKE) restart -update: # Update everything (i.e. after a branch update) - docker-compose build +post-update: $(MAKE) down docker-compose run --rm web gosu azuracast composer install docker-compose run --rm web azuracast_cli azuracast:setup --update $(MAKE) up +update: # Update everything (i.e. after a branch update) + docker-compose build + $(MAKE) post-update + +build-depot: # Rebuild all containers with Depot and restart + depot bake -f docker-compose.yml -f docker-compose.override.yml --load + $(MAKE) restart + +update-depot: # Update everything using Depot + depot bake -f docker-compose.yml -f docker-compose.override.yml --load + $(MAKE) post-update + test: docker-compose exec --user=azuracast web composer run cleanup-and-test diff --git a/depot.json b/depot.json new file mode 100644 index 000000000..b8a853a6b --- /dev/null +++ b/depot.json @@ -0,0 +1 @@ +{"id":"qvjwqlcn6p"}