Skip to content

Commit 791ece7

Browse files
committed
bump: version 4.1.7 → 4.2.0
1 parent 24a3541 commit 791ece7

File tree

3 files changed

+71
-15
lines changed

3 files changed

+71
-15
lines changed

Diff for: .cz.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ commitizen:
44
name: cz_conventional_commits
55
tag_format: v$version
66
update_changelog_on_bump: true
7-
version: 4.1.7
7+
version: 4.2.0
88
version_files:
99
- README.md
1010
version_scheme: semver

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v4.2.0 (2025-01-27)
2+
3+
### Feat
4+
5+
- add docker-build-push-multi-registry (#57)
6+
17
## v4.1.7 (2025-01-26)
28

39
### Fix

Diff for: README.md

+64-14
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Our main goal is to provide tools for maintainers working on Python 2 projects.
1111
Workflows:
1212

1313
- [docker-build-push-multi-platform](#githubworkflowsdocker-build-push-multi-platform)
14+
- [docker-build-push-multi-registry](#githubworkflowsdocker-build-push-multi-registry)
1415
- [pip-compile-upgrade](#githubworkflowspip-compile-upgrade)
1516
- [pre-commit-autoupdate](#githubworkflowspre-commit-autoupdate)
1617
- [pre-commit](#githubworkflowspre-commityml)
@@ -27,10 +28,6 @@ GitHub action for using a matrix strategy to distribute the build for
2728
`linux/amd64` and `linux/arm64`, and publish to a Docker registry of your choice
2829
(Docker Hub, ghcr.io or quay.io).
2930

30-
> [!NOTE]
31-
> `linux/amd64` images are built using `ubuntu-24.04` and `linux/arm64` images
32-
> are built using `ubuntu-24.04-arm`.
33-
3431
**Inputs**:
3532

3633
- `registry-image` (`string`): Docker image to use as base name for tags.
@@ -62,7 +59,7 @@ GitHub action for using a matrix strategy to distribute the build for
6259
```yml
6360
jobs:
6461
main:
65-
uses: coatl-dev/workflows/.github/workflows/docker-build-push-multi-platform.yml@v4.1.7
62+
uses: coatl-dev/workflows/.github/workflows/docker-build-push-multi-platform.yml@v4.2.0
6663
with:
6764
registry-image: user/app
6865
metadata-tags: |
@@ -78,6 +75,59 @@ jobs:
7875
registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
7976
```
8077
78+
### .github/workflows/docker-build-push-multi-registry
79+
80+
GitHub action for using a matrix strategy to distribute the build for
81+
`linux/amd64` and `linux/arm64`, and publish to Docker Hub and quay.io.
82+
83+
**Inputs**:
84+
85+
- `dockerhub-repo` (`string`): Docker Hub repository to push the image to.
86+
- `dockerhub-username` (`string`): Username for authenticating to Docker Hub.
87+
- `quay-repo` (`string`): Quay repository to push the image to.
88+
- `quay-username` (`string`): Username for authenticating to Quay.
89+
- `build-context` (`string`): Build's context is the set of files located in the
90+
specified PATH or URL. Optional.
91+
- `build-file` (`string`): Path to the Dockerfile. Optional.
92+
- `build-cache-key` (`string`): An explicit key for a cache entry. This will be
93+
used in conjunction with the platform set in `build-platforms`, e.g.
94+
`coatl-linux-amd64`. Defaults to `coatl`. Optional.
95+
- `build-digest-key` (`string`): Name of the build digest. This will be used in
96+
conjunction with the platform set in `build-platforms`, e.g.
97+
`coatl-linux-amd64`. Defaults to `coatl`. Optional.
98+
- `metadata-tags` (`string`): List of tags as key-value pair attributes.
99+
Optional.
100+
101+
**Secrets**:
102+
103+
- `dockerhub-password` (`secret`): Password or personal access token for
104+
authenticating against Docker Hub.
105+
- `quay-password` (`secret`): Password or personal access token for
106+
authenticating against Quay.
107+
108+
**Example**:
109+
110+
```yml
111+
jobs:
112+
main:
113+
uses: coatl-dev/workflows/.github/workflows/[email protected]
114+
with:
115+
dockerhub-repo: user/app
116+
dockerhub-username: ${{ vars.DOCKERHUB_USERNAME }}
117+
quay-repo: quay.io/user/app
118+
quay-username: ${{ vars.QUAY_USERNAME }}
119+
build-context: "{{defaultContext}}:mysubdir"
120+
build-cache-key: mykey
121+
build-digest-key: mydigest
122+
metadata-tags: |
123+
type=semver,pattern={{version}}
124+
type=semver,pattern={{major}}.{{minor}}
125+
type=semver,pattern={{major}}
126+
secrets:
127+
dockerhub-password: ${{ secrets.DOCKERHUB_TOKEN }}
128+
quay-password: ${{ secrets.QUAY_ROBOT_TOKEN }}
129+
```
130+
81131
### .github/workflows/pip-compile-upgrade
82132

83133
GitHub action for running `pip-compile upgrade` on your Python 2 and 3
@@ -120,7 +170,7 @@ on:
120170
121171
jobs:
122172
pip-compile-upgrade:
123-
uses: coatl-dev/workflows/.github/workflows/pip-compile-upgrade.yml@v4.1.7
173+
uses: coatl-dev/workflows/.github/workflows/pip-compile-upgrade.yml@v4.2.0
124174
with:
125175
path: requirements.txt
126176
secrets:
@@ -171,7 +221,7 @@ on:
171221
172222
jobs:
173223
pre-commit-autoupdate:
174-
uses: coatl-dev/workflows/.github/workflows/pre-commit-autoupdate.yml@v4.1.7
224+
uses: coatl-dev/workflows/.github/workflows/pre-commit-autoupdate.yml@v4.2.0
175225
with:
176226
skip-repos: 'flake8'
177227
secrets:
@@ -196,7 +246,7 @@ to install Python and invoke [`pre-commit`].
196246
```yaml
197247
jobs:
198248
main:
199-
uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@v4.1.7
249+
uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@v4.2.0
200250
with:
201251
skip-hooks: 'pylint'
202252
```
@@ -210,7 +260,7 @@ This workflow will install Python and invoke `pylint` to analyze your code.
210260
```yaml
211261
jobs:
212262
main:
213-
uses: coatl-dev/workflows/.github/workflows/pylint.yml@v4.1.7
263+
uses: coatl-dev/workflows/.github/workflows/pylint.yml@v4.2.0
214264
```
215265

216266
### .github/workflows/pypi-upload.yml
@@ -244,7 +294,7 @@ Secrets:
244294
```yaml
245295
jobs:
246296
main:
247-
uses: coatl-dev/workflows/.github/workflows/pypi-upload.yml@v4.1.7
297+
uses: coatl-dev/workflows/.github/workflows/pypi-upload.yml@v4.2.0
248298
with:
249299
python-version: '3.13'
250300
secrets:
@@ -272,7 +322,7 @@ requires =
272322
```yaml
273323
jobs:
274324
main:
275-
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v4.1.7
325+
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v4.2.0
276326
```
277327

278328
### .github/workflows/tox-envs.yml
@@ -304,7 +354,7 @@ requires =
304354
```yaml
305355
jobs:
306356
main:
307-
uses: coatl-dev/workflows/.github/workflows/tox-envs.yml@v4.1.7
357+
uses: coatl-dev/workflows/.github/workflows/tox-envs.yml@v4.2.0
308358
with:
309359
python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
310360
```
@@ -341,7 +391,7 @@ and on your workflow:
341391
```yaml
342392
jobs:
343393
main:
344-
uses: coatl-dev/workflows/.github/workflows/tox-gh.yml@v4.1.7
394+
uses: coatl-dev/workflows/.github/workflows/tox-gh.yml@v4.2.0
345395
with:
346396
python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
347397
```
@@ -356,7 +406,7 @@ This workflow will install Python and invoke `tox` to run all envs found in
356406
```yaml
357407
jobs:
358408
main:
359-
uses: coatl-dev/workflows/.github/workflows/tox.yml@v4.1.7
409+
uses: coatl-dev/workflows/.github/workflows/tox.yml@v4.2.0
360410
```
361411

362412
[`actions/setup-python`]: https://github.com/actions/setup-python

0 commit comments

Comments
 (0)