-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.33 KB
/
docker.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
name: Publish Docker image for demo
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
PublishDocker:
runs-on: ubuntu-latest
steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Increase build space
run: |
sudo rm -rf /usr/share/dotnet/*
sudo rm -rf /usr/local/lib/android/*
sudo rm -rf /opt/ghc/*
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Build Docker image
run: ./examples/mask_rcnn/build-docker.sh
- name: Login to registry
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Push image to registry
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
run: docker push ghcr.io/antmicro/ros2-vision-node-base:vision-node-base