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 new python-deploy 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@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: certpl | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push the image | |
uses: docker/build-push-action@v2.2.1 | |
with: | |
file: "./deploy/docker/Dockerfile" | |
tags: | | |
certpl/deploy:${{ github.sha }} | |
certpl/deploy:${{ github.event.release.tag_name }} | |
certpl/deploy:latest | |
push: true |