forked from cadey/xesite
Update kubernetes-cd.yml
This commit is contained in:
parent
7c356cca08
commit
90a54000ba
|
@ -8,16 +8,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Docker Login
|
- name: Build/Push Docker Image
|
||||||
uses: actions/docker/login@master
|
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:
|
env:
|
||||||
DOCKER_USERNAME: "xena"
|
DOCKER_USERNAME: "xena"
|
||||||
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
|
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
|
- name: Download secrets
|
||||||
run: |
|
run: |
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
|
|
Loading…
Reference in New Issue