From 94867af8f265c02eed49913474d7912d41c241a4 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 7 Sep 2019 12:08:31 -0400 Subject: [PATCH] Update kubernetes-cd.yml --- .github/workflows/kubernetes-cd.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/kubernetes-cd.yml b/.github/workflows/kubernetes-cd.yml index 6f22f5d..77fe9bb 100644 --- a/.github/workflows/kubernetes-cd.yml +++ b/.github/workflows/kubernetes-cd.yml @@ -8,15 +8,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - name: Docker Login + uses: actions/docker/login@master + env: + DOCKER_USERNAME: "${{ secrets.DOCKER_USERNAME }" + DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }" - name: Build/Push Docker Image run: | - mkdir -p ~/.docker - echo $DOCKER_CONFIG | base64 -d > ~/.docker/config - md5sum ~/.docker/config docker build . -t xena/christine.website:$(echo $GITHUB_SHA | head -c7) docker push xena/christine.website:$(echo $GITHUB_SHA | head -c7) - env: - DOCKER_CONFIG: "$${ secrets.DOCKER_CONFIG }" - name: Download secrets run: | mkdir ~/.ssh