Push container to dockerhub (#1075)
* push container to dockerhub * Fix stage name * Only run on master * Don't push on PR * Only run on commaai/openpilotalbatross
parent
de6d73599b
commit
5388878dac
|
@ -26,6 +26,24 @@ jobs:
|
||||||
name: tmppilot.tar.gz
|
name: tmppilot.tar.gz
|
||||||
path: tmppilot.tar.gz
|
path: tmppilot.tar.gz
|
||||||
|
|
||||||
|
push:
|
||||||
|
name: push
|
||||||
|
runs-on: ubuntu-16.04
|
||||||
|
needs: build
|
||||||
|
if: github.ref == 'master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v1
|
||||||
|
with:
|
||||||
|
name: tmppilot.tar.gz
|
||||||
|
- name: Load image
|
||||||
|
run: $LOAD
|
||||||
|
- name: Login to dockerhub
|
||||||
|
run: docker login -u wmelching -p ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Tag image
|
||||||
|
run: docker tag tmppilot docker.io/commaai/openpilot:latest
|
||||||
|
- name: Push image
|
||||||
|
run: docker push docker.io/commaai/openpilot:latest
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
name: linter
|
name: linter
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
|
|
Loading…
Reference in New Issue