Provides GitHub Workflow and Action samples.
- Build multi-platform docker image files: docker-buildx-gcr.yml
-
Optimize build speed using the
cacheplugin: java/README.md
cp .github/workflows/dispatch-request-exmple.json request-body.json
cat request-body.json
curl -d @request-body.json \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "Authorization: Bearer <your-token>" \
https://github.com/DevSecOpsSamples/githubactions/actions/workflows/dispatch-example.yml/dispatchesdevelop branch:
.github/workflows/dispatch-request-exmple.json
{
"ref": "develop",
"inputs": {
"test-url-tag": "gcr.io/project-id/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2",
"prod-url": "gcr.io/project-id/target-image"
}
}master branch:
{
"ref": "develop",
"inputs": {
"test-url-tag": "gcr.io/project-id/source-image:2650c2f7c04640b8c67df560510914f7ba2033e2",
"prod-url": "gcr.io/project-id/target-image"
}
}


