Update kubernetes-cd.yml

This commit is contained in:
Cadey Ratio 2019-09-07 12:40:39 -04:00 committed by GitHub
parent 7c356cca08
commit 90a54000ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -8,16 +8,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Docker Login - name: Build/Push Docker Image
uses: actions/docker/login@master 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: env:
DOCKER_USERNAME: "xena" DOCKER_USERNAME: "xena"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}" 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 - name: Download secrets
run: | run: |
mkdir ~/.ssh mkdir ~/.ssh