Deploy images #26
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
name: Deploy images | |
on: | |
workflow_dispatch: | |
inputs: | |
skip_push: | |
description: Skip pushing images? (true|false) | |
required: false | |
default: 'false' | |
skip_docs: | |
description: Skip the docs image? (true|false) | |
required: false | |
default: 'false' | |
jobs: | |
py37: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image π³ | |
uses: docker/build-push-action@v1 | |
with: | |
path: docker | |
dockerfile: docker/Dockerfile_37 | |
repository: cmsml/cmsml | |
tags: "3.7" | |
push: ${{ github.event.inputs.skip_push != 'true' }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
py38: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image π³ | |
uses: docker/build-push-action@v1 | |
with: | |
path: docker | |
dockerfile: docker/Dockerfile_38 | |
repository: cmsml/cmsml | |
tags: "3.8" | |
push: ${{ github.event.inputs.skip_push != 'true' }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
py39: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image π³ | |
uses: docker/build-push-action@v1 | |
with: | |
path: docker | |
dockerfile: docker/Dockerfile_39 | |
repository: cmsml/cmsml | |
tags: 3.9,3,latest | |
push: ${{ github.event.inputs.skip_push != 'true' }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
py39_base: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.inputs.skip_push != 'true' }} | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image π³ | |
uses: docker/build-push-action@v1 | |
with: | |
path: docker | |
dockerfile: docker/Dockerfile_39_base | |
repository: cmsml/cmsml | |
tags: 3.9_base | |
push: ${{ github.event.inputs.skip_push != 'true' }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
py310: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image π³ | |
uses: docker/build-push-action@v1 | |
with: | |
path: docker | |
dockerfile: docker/Dockerfile_310 | |
repository: cmsml/cmsml | |
tags: "3.10" | |
push: ${{ github.event.inputs.skip_push != 'true' }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
py311: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image π³ | |
uses: docker/build-push-action@v1 | |
with: | |
path: docker | |
dockerfile: docker/Dockerfile_311 | |
repository: cmsml/cmsml | |
tags: "3.11" | |
push: ${{ github.event.inputs.skip_push != 'true' }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
docs: | |
needs: py39 | |
runs-on: ubuntu-latest | |
if: ${{ github.event.inputs.skip_docs != 'true' && github.event.inputs.skip_push != 'true' }} | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and deploy image π³ | |
uses: docker/build-push-action@v1 | |
with: | |
path: docker | |
dockerfile: docker/Dockerfile_docs | |
repository: cmsml/cmsml | |
tags: docs | |
push: ${{ github.event.inputs.skip_push != 'true' }} | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} |