1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

workflow: only build docker in the pypi buildstep.

This commit is contained in:
Johan Andersson 2020-11-19 22:06:47 +01:00
parent d5fecf3682
commit 09f69b158a
2 changed files with 4 additions and 1 deletions

View File

@ -90,6 +90,7 @@ jobs:
run: python scripts/cibuild.py run: python scripts/cibuild.py
env: env:
CIBUILD: "yes" CIBUILD: "yes"
BUILD_DOCKER: "no"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
OS: "ubuntu-latest" OS: "ubuntu-latest"
@ -143,6 +144,7 @@ jobs:
run: python scripts/cibuild.py run: python scripts/cibuild.py
env: env:
CIBUILD: "yes" CIBUILD: "yes"
BUILD_DOCKER: "no"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
OS: "windows-latest" OS: "windows-latest"
@ -182,6 +184,7 @@ jobs:
run: python scripts/cibuild.py run: python scripts/cibuild.py
env: env:
CIBUILD: "yes" CIBUILD: "yes"
BUILD_DOCKER: "yes"
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

View File

@ -105,7 +105,7 @@ if not tag() and branch() != "master":
if os.environ.get("CIBUILD") != "yes": if os.environ.get("CIBUILD") != "yes":
sys.exit(0) sys.exit(0)
if os.environ.get("OS").startswith("ubuntu"): if os.environ.get("OS").startswith("ubuntu") and os.environ.get("BUILD_DOCKER") == "yes":
build_docker() build_docker()
aws_upload() aws_upload()