forked from cadey/xesite
Update kubernetes-cd.yml
This commit is contained in:
parent
4777c63c89
commit
4033a2b9d6
|
@ -11,16 +11,16 @@ jobs:
|
|||
- name: Build/Push Docker Image
|
||||
run: |
|
||||
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)
|
||||
env:
|
||||
DOCKER_CONFIG: "$${ secrets.DOCKER_CONFIG }"
|
||||
- name: Download secrets
|
||||
run: |
|
||||
mkdir ~/.ssh
|
||||
echo $FILE_DATA > temp
|
||||
cat temp | base64 -d > ~/.ssh/id_rsa
|
||||
rm temp
|
||||
echo $FILE_DATA | base64 -d > ~/.ssh/id_rsa
|
||||
md5sum ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
git clone git@git.xeserv.us:xena/within-terraform-secret
|
||||
|
|
Loading…
Reference in New Issue