adding docker login command

This commit is contained in:
Martin McKeaveney 2021-01-29 10:45:11 +00:00
parent c8b8ddb67f
commit 1aa86f4bff
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ jobs:
- name: Build and Push Staging Docker Image
# Only run on push
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: yarn build:staging:docker
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
yarn build:staging:docker
env:
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}