-
Notifications
You must be signed in to change notification settings - Fork 16
109 lines (86 loc) · 2.84 KB
/
build-docker-image-schedule.yaml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Build Docker Image Schedule
on:
schedule:
- cron: '0 0 * * *'
jobs:
build-people:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: "dev"
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
run: tools/setup-thirdparty-repos.sh
- name: Prebuild images
run: ./prebuild-docker.sh cuda
- name: Build images
shell: bash
run: ./build-docker.sh people
- name: Get short SHA
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Upload Images
shell: bash
env:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
SHORT_SHA: ${{ steps.vars.outputs.sha_short }}
run: |
docker login -u daisukesato80 -p "$DOCKERHUB_TOKEN"
./manage-docker-image.sh -a tag -i people -o cmucal -t nightly
./manage-docker-image.sh -a push -i people -o cmucal -t nightly
build-ros1:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: "dev"
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
run: tools/setup-thirdparty-repos.sh
- name: Prebuild images
run: ./prebuild-docker.sh ros1
- name: Build images
shell: bash
run: ./build-docker.sh ros1 localization people-nuc wireless
- name: Get short SHA
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Upload Images
shell: bash
env:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
SHORT_SHA: ${{ steps.vars.outputs.sha_short }}
run: |
docker login -u daisukesato80 -p "$DOCKERHUB_TOKEN"
./manage-docker-image.sh -a tag -i "ros1 localization people-nuc ble_scan" -o cmucal -t nightly
./manage-docker-image.sh -a push -i "ros1 localization people-nuc ble_scan" -o cmucal -t nightly
build-ros2:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: "dev"
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
run: tools/setup-thirdparty-repos.sh
- name: Prebuild images
run: ./prebuild-docker.sh ros2
- name: Build images
shell: bash
run: ./build-docker.sh ros2 bridge
- name: Get short SHA
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Upload Images
shell: bash
env:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
SHORT_SHA: ${{ steps.vars.outputs.sha_short }}
run: |
docker login -u daisukesato80 -p "$DOCKERHUB_TOKEN"
./manage-docker-image.sh -a tag -i "ros2 bridge" -o cmucal -t nightly
./manage-docker-image.sh -a push -i "ros2 bridge" -o cmucal -t nightly