-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#8 first working version docs service w redeploy
- Loading branch information
Showing
8 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Ansible workflow for single service deployment. | ||
# Uses: https://github.com/dawidd6/action-ansible-playbook | ||
# Options: https://github.com/dawidd6/action-ansible-playbook/blob/master/main.js | ||
# Author: Just van den Broecke - 2021 | ||
# | ||
name: Docs Deploy ⚙️ | ||
|
||
# Trigger only when services/docs subdir changed | ||
on: | ||
push: | ||
paths: | ||
- 'services/docs/**' | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout ✅ | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run playbook ⚙ | ||
uses: dawidd6/action-ansible-playbook@v2 | ||
with: | ||
playbook: deploy.yml | ||
directory: ./ansible | ||
key: ${{secrets.ANSIBLE_SSH_PRIVATE_KEY}} | ||
inventory: ${{secrets.ANSIBLE_INVENTORY_PROD}} | ||
vault_password: ${{secrets.ANSIBLE_VAULT_PASSWORD}} | ||
options: | | ||
--tags docs | ||
--verbose |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ WORKDIR /docs/ | |
|
||
EXPOSE 8000 | ||
|
||
CMD ["mkdocs", "serve"] | ||
CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"] |
This file contains 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
This file contains 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