From b8c7c2a923a7ce819d4388e75ddc0020c370ded8 Mon Sep 17 00:00:00 2001 From: iphydf Date: Thu, 23 Dec 2021 17:17:56 +0000 Subject: [PATCH] chore: Login to dockerhub before trying to push to dockerhub. --- .github/settings.yml | 3 +++ .github/workflows/docker.yml | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/settings.yml b/.github/settings.yml index 0eb9cf1f..8124f5f0 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -12,7 +12,10 @@ branches: protection: required_status_checks: contexts: + - build-bootstrapd-docker - build-nacl + - build-win32 + - build-win64 - Codacy Static Code Analysis - CodeFactor - "ci/circleci: asan" diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a17fbac3..3fbe8a11 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,11 +7,17 @@ on: branches: [master] jobs: - build-bootstrap-docker: + build-bootstrapd-docker: runs-on: ubuntu-latest steps: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + if: ${{ github.event_name == 'push' }} + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: actions/checkout@v2 - name: Docker Build run: .travis/tox-bootstrapd-docker local