This is a collection of workflows and scripts for GitHub Actions. I use these in a couple of other repositories.
This builds a docker image from a Dockerfile
and tags it following SemVer.
Usage example:
name: CI
on:
push:
jobs:
build:
uses: riesinger/github-workflows/.github/workflows/build-docker.yml@main
with:
image-name: name-of-image # yields ghcr.io/riesinger/name-of-image
secrets: inherit