diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5cac8adc0..a61d6786a 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