ci: run some jobs only on push (#26202)

* ci: run some jobs only on push

alternative to #25900

* tools too
old-commit-hash: 04b40aad92afaac555c3c7d814699c467d975627
This commit is contained in:
Cameron Clough
2022-10-21 21:13:55 -07:00
committed by GitHub
parent dfbb291ef2
commit cc8d86fa08
2 changed files with 11 additions and 5 deletions
+1 -4
View File
@@ -4,7 +4,6 @@ on:
push:
branches-ignore:
- 'testing-closet*'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref != 'refs/heads/master' && github.ref || github.run_id }}-${{ github.event_name }}
@@ -83,9 +82,7 @@ jobs:
run: |
DOCKER_BUILDKIT=1 docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $DOCKER_REGISTRY/openpilot-docs:latest -t $DOCKER_REGISTRY/openpilot-docs:latest -f docs/docker/Dockerfile .
- name: Push docker container
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
run: |
$DOCKER_LOGIN
docker push $DOCKER_REGISTRY/openpilot-docs:latest