-
Notifications
You must be signed in to change notification settings - Fork 40
86 lines (86 loc) · 2.99 KB
/
docker-publish.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Publish Docker Images
on:
push:
tags:
- 'v*.*.*'
jobs:
build_server:
name: Server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: login to docker hub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: build the docker image
id: build-docker-image
run: |
docker build -t openneuro/node:latest .
docker build -t openneuro/server:${{ github.ref_name }} packages/openneuro-server
- name: push the docker image
id: push-docker-image
run: docker push openneuro/server:${{ github.ref_name }}
build_app:
name: App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: login to docker hub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: build the docker image
id: build-docker-image
run: |
docker build -t openneuro/node:latest .
docker build -t openneuro/app:${{ github.ref_name }} packages/openneuro-app
- name: push the docker image
id: push-docker-image
run: docker push openneuro/app:${{ github.ref_name }}
build_indexer:
name: Indexer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: login to docker hub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: build the docker image
id: build-docker-image
run: |
docker build -t openneuro/node:latest .
docker build -t openneuro/indexer:${{ github.ref_name }} packages/openneuro-indexer
- name: push the docker image
id: push-docker-image
run: docker push openneuro/indexer:${{ github.ref_name }}
build_datalad_service:
name: Datalad Service
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: login to docker hub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: build the docker image
id: build-docker-image
run: |
cd services/datalad
docker build --build-arg LERNA_JSON="$(cat ../../lerna.json)" -t openneuro/datalad-service:${{ github.ref_name }} .
- name: push the docker image
id: push-docker-image
run: docker push openneuro/datalad-service:${{ github.ref_name }}