CI: login to dockerhub on aarch64 runners (#29915)

* DOCKER_HUB_LOGIN command

* Add docker creds

* checkout runner name

* test again

* Use runner.name to distinguish between buildjet and GH runners
This commit is contained in:
Kacper Rączy
2023-09-14 17:08:49 -07:00
committed by GitHub
parent 9dfd0579d4
commit c9ec7bc2a3
3 changed files with 19 additions and 8 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ on:
workflow_dispatch:
env:
DOCKER_LOGIN: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
DOCKER_GHCR_LOGIN: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
BUILD: selfdrive/test/docker_build.sh prebuilt
jobs:
@@ -29,5 +29,5 @@ jobs:
submodules: true
- name: Build and Push docker image
run: |
$DOCKER_LOGIN
$DOCKER_GHCR_LOGIN
eval "$BUILD"