Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start roughing out how github action deploys could work #189

Merged
merged 9 commits into from
Oct 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: 'deploy_docs'

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: 'ssh://dokku@apps.cakephp.org:authorization-docs-2'
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
4 changes: 4 additions & 0 deletions docs.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ COPY docs /data/docs
RUN cd /data/docs-builder && \
make website LANGS="en es fr" SOURCE=/data/docs DEST=/data/website

# Update elastic search index
RUN cd /data/docs-builder && \
make populate-index LANGS="en es fr" SOURCE=/data/docs ES_HOST="$DOKKU_ELASTICSEARCH_AQUA_URL" SEARCH_URL_PREFIX="/authorization/2"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think DOKKU_ELASTICSEARCH_AQUA_URL will be set, nor do I yet know how I will set the appropriate value either as a dokku build option or some other sorcery.


# Build a small nginx container with just the static site in it.
FROM nginx:1.15-alpine

Expand Down