last fix for ci
All checks were successful
books / flake8 (push) Successful in 30s
books / docker (push) Successful in 34s
books / pypi (push) Successful in 1m3s

This commit is contained in:
Michel Roux 2023-06-25 22:48:25 +02:00
parent 8649c913c4
commit 4f60073282

View File

@ -23,14 +23,14 @@ jobs:
id: meta id: meta
with: with:
images: xefir/pynyaata images: xefir/pynyaata
flavor: latest=${{ github.ref == 'refs/heads/master' }} flavor: latest=${{ gitea.ref == 'refs/heads/master' }}
- uses: https://github.com/docker/login-action@v2 - uses: https://github.com/docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: https://github.com/docker/build-push-action@v4 - uses: https://github.com/docker/build-push-action@v4
with: with:
push: ${{ github.ref == 'refs/heads/master' }} push: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: python container: python
needs: [lint] needs: [lint]
if: ${{ github.ref == 'refs/heads/master' }} if: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}
steps: steps:
- run: apt-get update - run: apt-get update
- run: apt-get install -y git nodejs - run: apt-get install -y git nodejs