Skip to content

Commit

Permalink
bump: version 4.0.0 → 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Sep 2, 2024
1 parent d40a61a commit 0a7512d
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ commitizen:
name: cz_conventional_commits
tag_format: v$version
update_changelog_on_bump: true
version: 4.0.0
version: 4.1.0
version_files:
- README.md
version_scheme: semver
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v4.1.0 (2024-09-01)

### Feat

- add docker-build-push-multi-platform (#43)

## v4.0.0 (2024-06-18)

### BREAKING CHANGE
Expand Down
72 changes: 63 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Our main goal is to provide tools for maintainers working on Python 2 projects.

Workflows:

- [docker-build-push-multi-platform](#githubworkflowsdocker-build-push-multi-platform)
- [pip-compile-upgrade](#githubworkflowspip-compile-upgrade)
- [pre-commit-autoupdate](#githubworkflowspre-commit-autoupdate)
- [pre-commit](#githubworkflowspre-commityml)
Expand All @@ -20,6 +21,59 @@ Workflows:
- [tox-gh](#githubworkflowstox-ghyml)
- [tox](#githubworkflowstoxyml)

### .github/workflows/docker-build-push-multi-platform

GitHub action for using a matrix strategy to distribute the build for
`linux/amd64` and `linux/arm64`, and publish to a Docker registry of your choice
(Docker Hub, ghcr.io or quay.io).

**Inputs**:

- `registry-image` (`string`): Docker image to use as base name for tags.
- `metadata-tags` (`string`): List of tags as key-value pair attributes.
Optional.
- `registry-address` (`string`): Server address of Docker registry. If not set
then will default to Docker registry. Optional.
- `registry-username` (`string`): Username for authenticating to the Docker
registry.
- `build-context` (`string`): Build's context is the set of files located in the
specified PATH or URL. Optional.
- `build-file` (`string`): Path to the Dockerfile. Optional.
- `build-provenance` (`boolean`): Generate provenance attestation for the build.
Defaults to `false`. Optional.
- `build-cache-key` (`string`): An explicit key for a cache entry. This will be
used in conjunction with the platform set in `build-platforms`, e.g.
`coatl-linux-amd64`. Defaults to `coatl`. Optional.
- `build-digest-key` (`string`): Name of the build digest. This will be used in
conjunction with the platform set in `build-platforms`, e.g.
`coatl-linux-amd64`. Defaults to `coatl`. Optional.

**Secrets**:

- `registry-password` (`secret`): Password or personal access token for
authenticating the Docker registry.

**Example**:

```yml
jobs:
main:
uses: coatl-dev/workflows/.github/workflows/[email protected]
with:
registry-image: user/app
metadata-tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
registry-username: ${{ vars.DOCKERHUB_USERNAME }}
build-context: "{{defaultContext}}:mysubdir"
build-provenance: true
build-cache-key: mykey
build-digest-key: mydigest
secrets:
registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
```
### .github/workflows/pip-compile-upgrade
GitHub action for running `pip-compile upgrade` on your Python 2 and 3
Expand Down Expand Up @@ -60,7 +114,7 @@ on:
jobs:
pip-compile-upgrade:
uses: coatl-dev/workflows/.github/workflows/pip-compile-upgrade.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/pip-compile-upgrade.yml@v4.1.0
with:
path: requirements.txt
secrets:
Expand Down Expand Up @@ -109,7 +163,7 @@ on:
jobs:
pre-commit-autoupdate:
uses: coatl-dev/workflows/.github/workflows/pre-commit-autoupdate.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/pre-commit-autoupdate.yml@v4.1.0
with:
skip-repos: 'flake8'
secrets:
Expand All @@ -134,7 +188,7 @@ to install Python and invoke [`pre-commit`].
```yaml
jobs:
main:
uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/pre-commit.yml@v4.1.0
with:
skip-hooks: 'pylint'
```
Expand All @@ -148,7 +202,7 @@ This workflow will install Python and invoke `pylint` to analyze your code.
```yaml
jobs:
main:
uses: coatl-dev/workflows/.github/workflows/pylint.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/pylint.yml@v4.1.0
```

### .github/workflows/pypi-upload.yml
Expand Down Expand Up @@ -178,7 +232,7 @@ Secrets:
```yaml
jobs:
main:
uses: coatl-dev/workflows/.github/workflows/pypi-upload.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/pypi-upload.yml@v4.1.0
with:
python-version: '3.11'
secrets:
Expand Down Expand Up @@ -206,7 +260,7 @@ requires =
```yaml
jobs:
main:
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v4.1.0
```

### .github/workflows/tox-envs.yml
Expand Down Expand Up @@ -238,7 +292,7 @@ requires =
```yaml
jobs:
main:
uses: coatl-dev/workflows/.github/workflows/tox-envs.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/tox-envs.yml@v4.1.0
with:
python-versions: '["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]'
```
Expand Down Expand Up @@ -276,7 +330,7 @@ and on your workflow:
```yaml
jobs:
main:
uses: coatl-dev/workflows/.github/workflows/tox-gh.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/tox-gh.yml@v4.1.0
with:
python-versions: '["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]'
```
Expand All @@ -291,7 +345,7 @@ This workflow will install Python and invoke `tox` to run all envs found in
```yaml
jobs:
main:
uses: coatl-dev/workflows/.github/workflows/tox.yml@v4.0.0
uses: coatl-dev/workflows/.github/workflows/tox.yml@v4.1.0
```

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

0 comments on commit 0a7512d

Please sign in to comment.