From 6046a5463ab775aa2e40fe691f14c06b72451d10 Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Tue, 9 Apr 2024 10:03:48 -0700 Subject: [PATCH] Only push docker images for releases --- .github/workflows/docker_deployment.yml | 20 ++++++++++---------- doc/misc/changelog.md | 2 ++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker_deployment.yml b/.github/workflows/docker_deployment.yml index 59bd28027..830aa53b0 100644 --- a/.github/workflows/docker_deployment.yml +++ b/.github/workflows/docker_deployment.yml @@ -48,16 +48,16 @@ jobs: tags: molpopgen/fwdpy11:latest, molpopgen/fwdpy11:${{ github.event.release.tag_name }} file: deployment/docker/Dockerfile context: . - - - name: Build and push from main - if: github.ref == 'refs/heads/main' - id: docker_bfild_main - uses: docker/build-push-action@v5 - with: - push: true - tags: molpopgen/fwdpy11:latest - file: deployment/docker/Dockerfile - context: . + # - + # name: Build and push from main + # if: github.ref == 'refs/heads/main' + # id: docker_bfild_main + # uses: docker/build-push-action@v5 + # with: + # push: true + # tags: molpopgen/fwdpy11:latest + # file: deployment/docker/Dockerfile + # context: . - name: Build image if: github.event_name == 'pull_request' diff --git a/doc/misc/changelog.md b/doc/misc/changelog.md index c04e539f4..bc4770ef9 100644 --- a/doc/misc/changelog.md +++ b/doc/misc/changelog.md @@ -27,6 +27,8 @@ Several PRs resulted in the following changes: * macos wheels are now built for two recent Python versions for both x86 and arm64 platforms * [cibuildwheel](https://cibuildwheel.pypa.io/en/stable/) is used to build wheels. +* `docker` images are only pushed for releases and not for each commit + to `main`. ## 0.22.0