v1.6.0 #9
Workflow file for this run
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
name: Release a new version | |
on: | |
release: | |
types: [published] | |
jobs: | |
release_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build package | |
run: | | |
pip3 install setuptools wheel | |
python3 setup.py bdist_wheel | |
- name: Publish to PyPi | |
uses: pypa/gh-action-pypi-publish@v1.3.0 | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} | |
release_dockerhub: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push the image | |
uses: docker/build-push-action@v4 | |
with: | |
tags: | | |
certpl/${{ github.event.repository.name }}:${{ github.sha }} | |
certpl/${{ github.event.repository.name }}:${{ github.event.release.tag_name }} | |
certpl/${{ github.event.repository.name }}:latest | |
push: true | |
# Flux v1 doesn't support OCI-compliant manifests | |
provenance: false | |
platforms: linux/arm64,linux/amd64 |