adding docker login command

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

View File

@ -38,7 +38,9 @@ jobs:
- name: Build and Push Staging Docker Image - name: Build and Push Staging Docker Image
# Only run on push # Only run on push
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} 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: env:
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}