Skip to content

Workflow file for this run

name: Build & Push Docker Image
on:
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
env:
DEEPCELL_VERSION: 0.12.9
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push CPU Image
id: docker_build_cpu
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ github.repository }}:latest
${{ github.repository }}:${{ github.event.release.tag_name }}
build-args: |
DEEPCELL_VERSION=${{ env.DEEPCELL_VERSION }}
- name: Image digest
run: echo ${{ steps.docker_build_cpu.outputs.digest }}
- name: Build and push GPU Image
id: docker_build_gpu
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ github.repository }}:latest-gpu
${{ github.repository }}:${{ github.event.release.tag_name }}-gpu
build-args: |
DEEPCELL_VERSION=${{ env.DEEPCELL_VERSION }}-gpu
- name: Image digest
run: echo ${{ steps.docker_build_gpu.outputs.digest }}