Set up Depot for local builds too.

This commit is contained in:
Buster Neece 2023-11-03 07:01:30 -05:00
parent 4df65171ba
commit 5d3d765e77
No known key found for this signature in database
3 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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

1
depot.json Normal file
View File

@ -0,0 +1 @@
{"id":"qvjwqlcn6p"}