Update kubernetes-cd.yml
This commit is contained in:
parent
36a80e9e04
commit
94867af8f2
|
@ -8,15 +8,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- 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
|
- name: Build/Push Docker Image
|
||||||
run: |
|
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 build . -t xena/christine.website:$(echo $GITHUB_SHA | head -c7)
|
||||||
docker push 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
|
- name: Download secrets
|
||||||
run: |
|
run: |
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
|
|
Loading…
Reference in New Issue