Update kubernetes-cd.yml
This commit is contained in:
parent
4777c63c89
commit
4033a2b9d6
|
@ -11,16 +11,16 @@ jobs:
|
||||||
- name: Build/Push Docker Image
|
- name: Build/Push Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker build . -t xena/christine.website:$(echo $GITHUB_SHA | head -c7)
|
docker build . -t xena/christine.website:$(echo $GITHUB_SHA | head -c7)
|
||||||
mkdir -p ~/.docker && echo $DOCKER_CONFIG > ~/.docker/config
|
mkdir -p ~/.docker
|
||||||
|
echo $DOCKER_CONFIG | base64 -d > ~/.docker/config
|
||||||
|
md5sum ~/.docker/config
|
||||||
docker push xena/christine.website:$(echo $GITHUB_SHA | head -c7)
|
docker push xena/christine.website:$(echo $GITHUB_SHA | head -c7)
|
||||||
env:
|
env:
|
||||||
DOCKER_CONFIG: "$${ secrets.DOCKER_CONFIG }"
|
DOCKER_CONFIG: "$${ secrets.DOCKER_CONFIG }"
|
||||||
- name: Download secrets
|
- name: Download secrets
|
||||||
run: |
|
run: |
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
echo $FILE_DATA > temp
|
echo $FILE_DATA | base64 -d > ~/.ssh/id_rsa
|
||||||
cat temp | base64 -d > ~/.ssh/id_rsa
|
|
||||||
rm temp
|
|
||||||
md5sum ~/.ssh/id_rsa
|
md5sum ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
git clone git@git.xeserv.us:xena/within-terraform-secret
|
git clone git@git.xeserv.us:xena/within-terraform-secret
|
||||||
|
|
Loading…
Reference in New Issue