Update docker-.md #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} . | |