forked from PolusAI/bfio
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.55 KB
/
docker.yml
File metadata and controls
58 lines (47 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Docker
on:
workflow_dispatch:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-dev[0-9]+
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Set up Docker Buildx 🐳
uses: docker/setup-buildx-action@v1
- id: get_version
run: echo "::set-output name=version::$(<./src/bfio/VERSION)"
- run: echo ${{ steps.get_version.outputs.version }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Publish Base Container 🐳
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/base/Dockerfile
push: true
tags: polusai/bfio:${{ steps.get_version.outputs.version }}
- name: Publish Tensorflow Container 🐳
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/tensorflow/Dockerfile
push: true
tags: polusai/bfio:${{ steps.get_version.outputs.version }}-tensorflow
- name: Publish ImageJ Container 🐳
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/imagej/Dockerfile
push: true
tags: polusai/bfio:${{ steps.get_version.outputs.version }}-imagej