From 23fd4b1158feb47860cd8343df94f055bade01f7 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 10 Feb 2020 19:03:46 -0800 Subject: [PATCH] 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/openpilot old-commit-hash: 5388878dace73692dc4fc5ddbb39105a34bb2409 --- .github/workflows/test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5cac8adc0c..a61d6786a7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -26,6 +26,24 @@ jobs: name: 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: name: linter runs-on: ubuntu-16.04