-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (42 loc) · 1.32 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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@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: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push the image
uses: docker/build-push-action@v2.2.1
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