There are four types of reusable workflows:
-
Build docker image using Dockerfile and push to docker registry
-
Build static content, upload to s3 and run cloudfront invalidation
Versioning template: Major.Minor.Patch (1.0.0)
After implementing new functional needed to push new tag in case of changes size:
-
Small change like type change parameter ⇒ Patch (1.0.0 ⇒ 1.0.1)
-
Small change like adding new action or new parameter ⇒ Minor (1.0.0 ⇒ 1.1.0)
-
Medium or big change like adding new reusable workflow or reworking current ⇒ Major (1.0.0 ⇒ 2.0.0)
uses: Cerebellum-Network/reusable-workflows/.github/workflows/build-and-push-docker.yaml@<version>
with:
<variables>
secrets:
<secrets> or just inherit
Variables you can find in "inputs" block
Secrets you can find in "secrets" block
Version you can choose follow changelog