-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.02 KB
/
build_mkdocs.yml
File metadata and controls
40 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI/CD
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [master]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
#- run: printenv
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs
- run: mkdocs gh-deploy --force
- run: echo "🎉 The job was successful."
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: List files in the repository
run: |
docker ps
docker images
ls -al
printenv
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
docker build -t kbosow/docs-soowcode:dev .
docker push kbosow/docs-soowcode:dev
# docker push kbosow/docs-soowcode:${GITHUB_SHA}
# docker build -t kbosow/docs-soowcode:${GITHUB_SHA} .