This commit is contained in:
Cadey Ratio 2019-10-16 01:04:44 +00:00
parent 13d21cadba
commit f7327f2d5a
1 changed files with 5 additions and 10 deletions

View File

@ -9,25 +9,20 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Build container image - name: Build container image
uses: actions/docker/cli@master run: |
with: docker build -t xena/christinewebsite:$(echo $GITHUB_SHA | head -c7) .
args: build -t xena/christinewebsite:$(echo $GITHUB_SHA | head -c7) . echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- name: Docker Login docker push xena/christinewebsite
uses: actions/docker/login@master
env: env:
DOCKER_USERNAME: "xena" DOCKER_USERNAME: "xena"
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Push image to Docker Hub
uses: actions/docker/cli@master
with:
args: push xena/christinewebsite
- name: Download secrets/Install/Configure/Use Dyson - name: Download secrets/Install/Configure/Use Dyson
run: | run: |
mkdir ~/.ssh mkdir ~/.ssh
echo $FILE_DATA | base64 -d > ~/.ssh/id_rsa echo $FILE_DATA | base64 -d > ~/.ssh/id_rsa
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@ssh.tulpa.dev:cadey/within-terraform-secret
curl https://xena.greedo.xeserv.us/files/dyson-linux-amd64-0.1.0.tgz | tar xz curl https://xena.greedo.xeserv.us/files/dyson-linux-amd64-0.1.0.tgz | tar xz
cp ./dyson-linux-amd64-0.1.0/dyson . cp ./dyson-linux-amd64-0.1.0/dyson .
rm -rf dyson-linux-amd64-0.1.0 rm -rf dyson-linux-amd64-0.1.0