-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (30 loc) · 1.16 KB
/
make-docker-image.yml
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
name: Make and Push Docker Images to Dockerhub
# on: [workflow_dispatch]
on:
workflow_dispatch:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
# --tag my-image-name:$(date +%s)
run: |
docker build . --file docker/Dockerfile.rtcloud --tag brainiak/rtcloud:latest
docker build . --file docker/Dockerfile.rtcloudlite --tag brainiak/rtcloudlite:latest
# Github runners are currently limited to 14 GB of storage so we can't build the XL
# instance here (which includes FSL, ANTS, C3D tools) which requires 30+ GB
# docker build . --file docker/Dockerfile.rtcloudXL --tag brainiak/rtcloudxl:latest
- name: Docker login
run: |
echo "${{secrets.DOCKER_PASSWORD}}" | docker login -u ${{secrets.DOCKER_USER}} --password-stdin
- name: Docker Push
run: |
docker push brainiak/rtcloud:latest
docker push brainiak/rtcloudlite:latest
# docker push brainiak/rtcloudxl:latest
- name: Docker logout
# Removes credentials stored in $HOME/.docker/config.json
run: docker logout