CI: fix docker push (#29614)

* fix those

* fix docker push too

* dont need that twice
This commit is contained in:
Justin Newberry
2023-08-24 16:30:33 -07:00
committed by GitHub
parent 3d9f238bf9
commit ede9f2cda5
2 changed files with 6 additions and 5 deletions

View File

@@ -187,18 +187,19 @@ jobs:
name: docker push
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
env:
PUSH_IMAGE: true
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup to push to repo
run: |
export PUSH_IMAGE=true
$DOCKER_LOGIN
- uses: ./.github/workflows/setup
with:
git-lfs: false
- name: Build and push CL Docker image
run: |
$DOCKER_LOGIN
eval "$BUILD_CL"
static_analysis:

View File

@@ -60,7 +60,7 @@ jobs:
run: eval "$BUILD_CL"
- name: Setup to push to repo
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
run:
run: |
export PUSH_IMAGE=true
$DOCKER_LOGIN
- name: Build and push sim image
@@ -81,7 +81,7 @@ jobs:
git_lfs: false
- name: Setup to push to repo
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
run:
run: |
export PUSH_IMAGE=true
$DOCKER_LOGIN
- name: Build and push docs image