-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (43 loc) · 1.36 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
45
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/[email protected]
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