-
Notifications
You must be signed in to change notification settings - Fork 9
86 lines (70 loc) · 2.27 KB
/
Copy pathdocker-image-build.yml
File metadata and controls
86 lines (70 loc) · 2.27 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
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
name: Docker Images CI
on:
pull_request:
branches: [ master ]
pull_request_target:
branches: [ master ]
push:
branches: [ master ]
workflow_dispatch:
jobs:
build-dev:
runs-on: ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build DEV Docker image
run: |
docker build ./src/dev --tag nest/nest-simulator:latest
- name: Check NEST dev
run: |
docker run --rm nest/nest-simulator:latest python3 -c "import nest" | grep "Version:"
- name: Push DEV to Docker Hub
uses: docker/build-push-action@v5
with:
context: ./src/dev
push: true
tags: nest/nest-simulator:dev
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
build-2-20-2:
runs-on: ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build 2.20.2 Docker image
run: |
docker build ./src/2.20.2 --tag nest/nest-simulator:2.20.2
- name: Check NEST 2.20.2
run: |
docker run --rm nest/nest-simulator:2.20.2 python3 -c "import nest" | grep "Version:"
- name: Push 2.20.2 to Docker Hub
uses: docker/build-push-action@v5
with:
context: ./src/2.20.2
push: true
tags: nest/nest-simulator:2.20.2
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
build-3-9:
runs-on: ubuntu-2404
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build 3.9 Docker image
run: |
docker build ./src/3.9 --tag nest/nest-simulator:3.9
- name: Check NEST 3.9
run: |
docker run --rm nest/nest-simulator:3.9 python3 -c "import nest" | grep "Version:"
- name: Push 3.9 to Docker Hub
uses: docker/build-push-action@v5
with:
context: ./src/3.9
push: true
tags: nest/nest-simulator:3.9
env:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}