mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:34:04 +00:00
944 B
944 B
Internal development notes
Updating the docker image used by the GH action
- Login in to Docker Hub:
docker login -u archtechx - Shut down containers:
composer docker-down - Build the image:
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker compose build --no-cache - Start containers again, using the amd64 image for the
testservice:composer docker-up - Verify that tests pass on the new image:
composer test - Tag a new image:
docker tag tenancy-test archtechx/tenancy:latest - Push the image:
docker push archtechx/tenancy:latest - Optional: Rebuild the image again locally for arm64:
composer docker-rebuild
Debugging GitHub Actions
The ci.yml workflow includes support for act.
To run all tests using act, run composer act. To run only certain tests using act, use composer act-input "FILTER='some test name'" or composer act -- --input "FILTER='some test name'".