Skip to content

Commit

Permalink
Only push docker images for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Apr 9, 2024
1 parent 570ac98 commit 6046a54
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions doc/misc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6046a54

Please sign in to comment.