chore: Login to dockerhub before trying to push to dockerhub.

This commit is contained in:
iphydf 2021-12-23 17:17:56 +00:00
parent 1639703c62
commit b8c7c2a923
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 10 additions and 1 deletions

View File

@ -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"

View File

@ -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