forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (42 loc) · 1.13 KB
/
docker_build.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
name: docker
on:
push:
branches-ignore:
- 'testing-closet*'
paths-ignore:
- '**.md'
- 'README*'
jobs:
docker_push:
name: docker push
runs-on: ubuntu-20.04
timeout-minutes: 90
steps:
- uses: actions/checkout@v2
with:
submodules: true
lfs: true
- name: Prepare CI Env Vars
run: |
chmod +x ./.github/scripts/ci_env_vars.sh
source ./.github/scripts/ci_env_vars.sh
- name: Wait For Passing Tests
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
wait-interval: 60
check-name: 'wait for selfdrive'
- name: Build Docker image
if: ${{ env.IS_DEFAULT_REPO && env.IS_MAIN_BRANCH }}
run: eval "$BUILD_CMD"
- name: Push to container registry
if: ${{ env.IS_DEFAULT_REPO && env.IS_MAIN_BRANCH }}
run: |
eval "$DOCKER_LOGIN ${{ secrets.PACKAGE_PAT }}"
docker push ${{ env.BASE_IMAGE }}
docker push ${{ env.CI_IMAGE }}
docker push ${{ env.FAT_IMAGE }}
- name: Docker Logout
if: always()
continue-on-error: true
run: docker logout