CI: fix docker push (#29614)

* fix those

* fix docker push too

* dont need that twice
old-commit-hash: ede9f2cda5
beeps
Justin Newberry 2 years ago committed by GitHub
parent 6847f819d1
commit 630b440536
  1. 7
      .github/workflows/selfdrive_tests.yaml
  2. 4
      .github/workflows/tools_tests.yaml

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

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

Loading…
Cancel
Save