Start of a github action to publish to docker and pypi
This commit is contained in:
parent
9cc25a7f2e
commit
9a293dd4b4
|
@ -0,0 +1,27 @@
|
|||
name: Publish to Docker and Pypi
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||
|
||||
- name: Build the Docker image
|
||||
run: make docker-build
|
||||
|
||||
- name: Build and publish to pypi
|
||||
uses: JRubics/poetry-publish@v1.8
|
||||
with:
|
||||
pypi_token: ${{ secrets.PYPI_TOKEN }}
|
Loading…
Reference in New Issue