Package #29
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: Package | |
on: | |
repository_dispatch: | |
types: [docker] | |
workflow_dispatch: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete huge unnecessary tools folder | |
run: rm -rf /opt/hostedtoolcache | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push Base Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:latest | |
ghcr.io/pyplati/platipy:latest | |
- name: Build and Push Service Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: service.Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:service | |
ghcr.io/pyplati/platipy:service | |
- name: Build and Push Dev Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: dev.Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:dev | |
ghcr.io/pyplati/platipy:dev | |
- name: Build and Push Cardiac Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: services/cardiac | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:cardiac | |
ghcr.io/pyplati/platipy:cardiac | |
- name: Build and Push Bronchus Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: services/bronchus | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:bronchus | |
ghcr.io/pyplati/platipy:bronchus | |
- name: Build and Push Pinnacle Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: services/pinnacle | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:pinnacle | |
ghcr.io/pyplati/platipy:pinnacle | |
- name: Build and Push MRI Dixon Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: services/mridixon | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:mridixon | |
ghcr.io/pyplati/platipy:mridixon | |
- name: Build and Push Radiomics Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: services/radiomics | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:radiomics | |
ghcr.io/pyplati/platipy:radiomics | |
- name: Build and Push DIRQA Docker Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: services/dirqa | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:dirqa | |
ghcr.io/pyplati/platipy:dirqa | |
- name: Build and Push nnUNet Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: services/nnunet | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:nnunet | |
ghcr.io/pyplati/platipy:nnunet | |
- name: Build and Push TotalSegmentator Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: services/totalsegmentator | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
platipy/platipy:totalsegmentator | |
ghcr.io/pyplati/platipy:totalsegmentator |