Specify target, move envvars to file, improve mocking
This commit is contained in:
@@ -1,20 +1,23 @@
|
||||
TARGET?=unstable
|
||||
TARGET?=oldstable # or stable, unstable
|
||||
|
||||
mock:
|
||||
docker compose -f tests/mock/compose.yaml up -d
|
||||
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml up --remove-orphans -d
|
||||
|
||||
unmock:
|
||||
docker compose -f tests/mock/compose.yaml down
|
||||
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml down
|
||||
|
||||
client:
|
||||
docker compose -f tests/mock/compose.yaml rm -fs client
|
||||
docker compose -f tests/mock/compose.yaml up -d client
|
||||
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml rm -fs client
|
||||
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml up --remove-orphans -d client
|
||||
|
||||
shell:
|
||||
docker compose -f tests/mock/compose.yaml exec client bash
|
||||
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml run --rm client bash
|
||||
|
||||
logs:
|
||||
docker compose -f tests/mock/compose.yaml logs -f client
|
||||
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml logs -f client
|
||||
|
||||
ps:
|
||||
TARGET=${TARGET} docker compose -f tests/mock/compose.yaml ps
|
||||
|
||||
build:
|
||||
TARGET=${TARGET} CI_COMMIT_TAG=${CI_COMMIT_TAG} bash scripts/build-images.sh
|
||||
|
||||
Reference in New Issue
Block a user