-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (30 loc) · 1.58 KB
/
ci_push.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
name: Build, test and upload docker images
on:
push:
branches: [ 'main' ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout IUI
uses: actions/checkout@v2
- name: Build the base IUI stack
run: ./build.sh
- name: Build the ISAAC IUI stack
run: ./build.sh --astrobee --remote
- name: Build the ISAAC IUI stack
run: ./build.sh --isaac --remote
- name: Test stack
run: docker images
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: Push Docker image
run: |
docker tag iui_frontend:latest ghcr.io/${{ github.repository_owner }}/iui_frontend:latest
if [ "${{ github.repository_owner }}" = "nasa" ]; then docker push ghcr.io/${{ github.repository_owner }}/iui_frontend:latest; fi;
docker tag iui_backend:latest ghcr.io/${{ github.repository_owner }}/iui_backend:latest
if [ "${{ github.repository_owner }}" = "nasa" ]; then docker push ghcr.io/${{ github.repository_owner }}/iui_backend:latest; fi;
docker tag iui_rosbridge:latest ghcr.io/${{ github.repository_owner }}/iui_rosbridge:latest
if [ "${{ github.repository_owner }}" = "nasa" ]; then docker push ghcr.io/${{ github.repository_owner }}/iui_rosbridge:latest; fi;
docker tag isaac_rosbridge:latest ghcr.io/${{ github.repository_owner }}/isaac_rosbridge:latest
if [ "${{ github.repository_owner }}" = "nasa" ]; then docker push ghcr.io/${{ github.repository_owner }}/isaac_rosbridge:latest; fi;