mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-05-20 17:59:38 +00:00
Replaces `build-push-action` buildx QEMU building for multiple `arch` with a multi-runner matrix that builds each image on native runners and combines digests before pushing to registries. * Use arm public preview runner * Refactor publish image workflow to use multi-runner * Refactor PR workflow to use multi-runner |
||
|---|---|---|
| .. | ||
| .actrc | ||
| .env.example | ||
| .secrets.example | ||
| actBranchEvent.json | ||
| actPREvent.json | ||
| actTagEvent.json | ||
| actTagPreEvent.json | ||
| actTest.yml | ||
| docker-bake.hcl | ||
| multiRunnerBakeTest.yml | ||
| multiRunnerTest.yml | ||
| README.md | ||
| testSuite.yml | ||
Testing GH Actions with ACT
Need to have credentials in a .secrets file, copy and rename .secrets.example to .secrets, then fill out blank fields. Required for docker/metadata-action to read...something. Fails with Parameter token or opts.auth is required if they are not supplied.
An ENV file can also be made by copy and renaming .env.example. Set NO_DOCKER_BUILD=true if you only want to test APP_VERSION and docker tags output.
If running a full docker build for multi-runner workflows you will need to create an artifact server for ACT to work:
docker pull ghcr.io/jefuller/artifact-server:latest
docker run -d --name artifact-server -p 8082:8080 --add-host host.docker.internal:host-gateway -e AUTH_KEY=foo ghcr.io/jefuller/artifact-server:latest
Run the following from this directory to make use of .actrc and proper working directory.
Test Branch Test Suite
act -W '.github/act/testSuite.yml' -e '.github/act/actBranchEvent.json'
Test Branch Push
act -W '.github/act/actTest.yml' -e '.github/act/actBranchEvent.json'
Test Tag (Release) Push
act -W '.github/act/actTest.yml' -e '.github/act/actTagEvent.json'
Test Tag (Pre-Release) Push
act -W '.github/act/actTest.yml' -e '.github/act/actTagPreEvent.json'
Test Multi-Runner Push (WIP)
act -W '.github/act/multiRunnerTest.yml' -e '.github/act/actBranchEvent.json'
Test Multi-Runner Bake Push (WIP)
act -W '.github/act/multiRunnerBakeTest.yml' -e '.github/act/actBranchEvent.json'