-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from rcwbr/46-manage-inline-version-files
Manage inline version files
- Loading branch information
Showing
5 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,9 +45,23 @@ jobs: | |
env: | ||
REGISTRY: ghcr.io/rcwbr/ | ||
IMAGE_NAME: release-it-docker-conventional-changelog | ||
- | ||
id: docker-bake-file-bumper | ||
name: Docker Bake file-bumper | ||
uses: docker/[email protected] | ||
with: | ||
workdir: file-bumper | ||
source: https://github.com/rcwbr/dockerfile-partials.git#0.1.0 | ||
files: github-cache-bake.hcl, cwd://docker-bake.hcl | ||
set: | | ||
default.context=cwd:// | ||
env: | ||
REGISTRY: ghcr.io/rcwbr/ | ||
IMAGE_NAME: release-it-docker-file-bumper | ||
outputs: | ||
docker-bake-base-metadata: ${{ steps.docker-bake-base.outputs.metadata }} | ||
docker-bake-conventional-changelog-metadata: ${{ steps.docker-bake-conventional-changelog.outputs.metadata }} | ||
docker-bake-file-bumper-metadata: ${{ steps.docker-bake-file-bumper.outputs.metadata }} | ||
release-it-workflow: | ||
uses: rcwbr/release-it-gh-workflow/.github/workflows/[email protected] | ||
needs: build-docker-images | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"git": { | ||
"getLatestTagFromAllRefs": true, | ||
"commit": true, | ||
"tag": true, | ||
"pushArgs": ["--tags"], | ||
"tagName": "${version}" | ||
}, | ||
"github": { | ||
"release": true | ||
}, | ||
"plugins": { | ||
"@release-it/bumper": { | ||
"out": { | ||
"file": "VERSION", | ||
"type": "text/plain", | ||
"consumeWholeFile": true | ||
} | ||
}, | ||
"@release-it/conventional-changelog": { | ||
"preset": { | ||
"name": "conventionalcommits", | ||
"types": [ | ||
{ | ||
"type": "feat", | ||
"section": ":rocket: Features" | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": ":bug: Bug fixes" | ||
}, | ||
{ | ||
"type": "build", | ||
"section": ":package: Build" | ||
}, | ||
{ | ||
"type": "ci", | ||
"section": ":robot: CI/CD" | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": ":page_facing_up: Docs" | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": ":checkered_flag: Performance" | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": ":twisted_rightwards_arrows: Refactor" | ||
}, | ||
{ | ||
"type": "style", | ||
"section": ":broom: Style" | ||
}, | ||
{ | ||
"type": "test", | ||
"section": ":test_tube: Tests" | ||
}, | ||
{ | ||
"type": "chore", | ||
"hidden": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM base | ||
|
||
RUN npm install -g @release-it/bumper | ||
COPY .release-it.json /.release-it.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Expected to be used with https://github.com/rcwbr/dockerfile-partials/blob/main/github-cache-bake.hcl | ||
// For example, docker buildx bake -f github-cache-bake.hcl -f cwd://docker-bake.hcl https://github.com/rcwbr/dockerfile-partials.git#0.1.0 | ||
|
||
target "default" { | ||
contexts = { | ||
base = ( | ||
("${GITHUB_REF_PROTECTED}" == "true" || "${GITHUB_REF_TYPE}" == "tag" ) | ||
? "docker-image://${REGISTRY}release-it-docker-conventional-changelog:${VERSION}" | ||
: "docker-image://${REGISTRY}release-it-docker-conventional-changelog:${VERSION}-${GITHUB_SHA}" | ||
) | ||
} | ||
} |