1.2.6 adjust python dep to python = ">=3.9,<3.12.0"
#19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################### | |
# **NOTE** - dockerization has more recently been happening | |
# in other repos (pbp-jupyter, pbp-binder, ...). | |
# TODO revisit this at some point. | |
############################################################### | |
name: Build and publish docker images | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build_and_push_ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: mbari/pbp | |
tags: | | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: docker/Dockerfile-minimal | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
# build_and_push_macos_14: | |
# runs-on: macos-14 | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: docker/login-action@v3 | |
# with: | |
# username: ${{ secrets.DOCKERHUB_USERNAME }} | |
# password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# - id: meta | |
# uses: docker/metadata-action@v5 | |
# with: | |
# images: mbari/pbp-m1 | |
# tags: | | |
# type=semver,pattern={{version}} | |
# type=semver,pattern={{major}}.{{minor}} | |
# type=semver,pattern={{major}} | |
# - uses: docker/build-push-action@v5 | |
# with: | |
# context: . | |
# file: docker/Dockerfile-minimal | |
# push: true | |
# tags: ${{ steps.meta.outputs.tags }} | |
# labels: ${{ steps.meta.outputs.labels }} |