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
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