Template repository for GitHub Actions
- Docker Hub: devopsinfra/template-action:latest
- GitHub Packages: ghcr.io/devops-infra/template-action:latest
- Baseline for
Dockerfile
,entrypoint.sh
,Makefile
. - Templates for Pull Requests and Issues.
- Actions for a default automation.
- Includes Code of Conduct, Contributing and Codeowners.
- name: Run the Action
uses: devops-infra/[email protected]
env:
bazbar: barfoo
with:
foobar: bazbar
Environment Variable | Required | Description |
---|---|---|
bazbar | No | Environment variable for env: ... . |
Input Variable | Required | Default | Description |
---|---|---|---|
foobar | No | foobar |
Some input variable for with: ... . |
Outputs | Description |
---|---|
foobar | Output from action. |
Run the Action with defaults.
- name: Run the Action
uses: devops-infra/[email protected]
Run the Action with set inputs.
name: Run the Action on each commit
on:
push
jobs:
template-action:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Run the Action
uses: devops-infra/[email protected]
env:
bar: foo
with:
bar: baz
This action supports three tag levels for flexible versioning:
-
vX
: Always points to the latest patch of a major version (e.g.,v1
βv1.2.3
).
Benefit: Get all latest fixes for a major version automatically. -
vX.Y
: Always points to the latest patch of a minor version (e.g.,v1.2
βv1.2.3
).
Benefit: Stay on a minor version, always up-to-date with bugfixes. -
vX.Y.Z
: Fixed to a specific release (e.g.,v1.2.3
).
Benefit: Full reproducibilityβnever changes.
Use the tag depth that matches your stability needs.
Contributions are welcome! Please feel free to submit a Pull Request. Refer to the CONTRIBUTING for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or need help, please:
- π Create an issue
- π Star this repository if you find it useful!