mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
CI: use GITHUB_ENV for env variables (#29616)
export doesn't work across steps
old-commit-hash: 90cb417caa
This commit is contained in:
2
.github/workflows/selfdrive_tests.yaml
vendored
2
.github/workflows/selfdrive_tests.yaml
vendored
@@ -193,7 +193,7 @@ jobs:
|
||||
submodules: true
|
||||
- name: Setup to push to repo
|
||||
run: |
|
||||
export PUSH_IMAGE=true
|
||||
echo "PUSH_IMAGE=true" >> "$GITHUB_ENV"
|
||||
$DOCKER_LOGIN
|
||||
- uses: ./.github/workflows/setup
|
||||
with:
|
||||
|
||||
4
.github/workflows/tools_tests.yaml
vendored
4
.github/workflows/tools_tests.yaml
vendored
@@ -61,7 +61,7 @@ jobs:
|
||||
- name: Setup to push to repo
|
||||
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
|
||||
run: |
|
||||
export PUSH_IMAGE=true
|
||||
echo "PUSH_IMAGE=true" >> "$GITHUB_ENV"
|
||||
$DOCKER_LOGIN
|
||||
- name: Build and push sim image
|
||||
run: |
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
- name: Setup to push to repo
|
||||
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
|
||||
run: |
|
||||
export PUSH_IMAGE=true
|
||||
echo "PUSH_IMAGE=true" >> "$GITHUB_ENV"
|
||||
$DOCKER_LOGIN
|
||||
- name: Build and push docs image
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user