From 90a54000ba0cfe050d86969a4c56947783cb8089 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 7 Sep 2019 12:40:39 -0400 Subject: [PATCH] Update kubernetes-cd.yml --- .github/workflows/kubernetes-cd.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/kubernetes-cd.yml b/.github/workflows/kubernetes-cd.yml index 0ddffd5..2424158 100644 --- a/.github/workflows/kubernetes-cd.yml +++ b/.github/workflows/kubernetes-cd.yml @@ -8,16 +8,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Docker Login - uses: actions/docker/login@master + - name: Build/Push Docker Image + run: | + docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD + docker build . -t docker.io/within/christinewebsite:$(echo $GITHUB_SHA | head -c7) + docker push docker.io/within/christinewebsite:$(echo $GITHUB_SHA | head -c7) env: DOCKER_USERNAME: "xena" DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}" - - name: Build/Push Docker Image - run: | - set -x - docker build . -t docker.io/within/christinewebsite:$(echo $GITHUB_SHA | head -c7) - docker push docker.io/within/christinewebsite:$(echo $GITHUB_SHA | head -c7) - name: Download secrets run: | mkdir ~/.ssh