File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -73,21 +73,18 @@ jobs:
7373 runs-on : ubuntu-latest
7474 steps :
7575 - uses : actions/checkout@v2
76- - name : Build Sphinx Image
76+ - name : Build Sphinx Image and Push to DockerHub
7777 run : |
7878 source <(curl -sL http://ci.q-ctrl.com)
7979 ./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
8080 ./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_user -o .hub_user
8181 ./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_pass -o .hub_pass
82- ./ci docker build \
82+ ./ci docker buildPush \
8383 -f ./docs/Dockerfile \
84- -t qctrl/python-open-controls-docs:development
85- - name : Push Sphinx Image to Dockerhub
86- run : |
87- ./ci docker push \
8884 -u $(cat .hub_user) \
8985 -p $(cat .hub_pass) \
90- qctrl/python-open-controls-docs:development
86+ -t development \
87+ --suffix -docs
9188 - name : Update Sphinx deployment in Kubernetes (Development)
9289 run : |
9390 ./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
Original file line number Diff line number Diff line change @@ -31,21 +31,18 @@ jobs:
3131 runs-on : ubuntu-latest
3232 steps :
3333 - uses : actions/checkout@v2
34- - name : Build Sphinx Image
34+ - name : Build Sphinx Image and Push to DockerHub
3535 run : |
3636 source <(curl -sL http://ci.q-ctrl.com)
3737 ./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
3838 ./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_user -o .hub_user
3939 ./ci vault get -t $(cat .token) -p secret/data/dockerhub -k hub_pass -o .hub_pass
40- ./ci docker build \
40+ ./ci docker buildPush \
4141 -f ./docs/Dockerfile \
42- -t qctrl/python-open-controls-docs:latest
43- - name : Push Sphinx Image to Dockerhub
44- run : |
45- ./ci docker push \
4642 -u $(cat .hub_user) \
4743 -p $(cat .hub_pass) \
48- qctrl/python-open-controls-docs:latest
44+ -t latest \
45+ --suffix -docs
4946 - name : Update Sphinx deployment in Kubernetes (Production)
5047 run : |
5148 ./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
You can’t perform that action at this time.
0 commit comments