Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
beginnings of a github action to build the loomio.com docker image
- Loading branch information
1 parent
b3c345b
commit 4d16b82
Showing
1 changed file
with
42 additions
and
0 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,42 @@ | ||
name: Publish Loomio.com image | ||
|
||
on: | ||
# push: master | ||
push: | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Build and push loomio.com image | ||
runs-on: ubuntu-latest | ||
env: | ||
HAVESECRET: ${{ secrets.DOCKER_USERNAME }} | ||
steps: | ||
- name: Check out loomio source | ||
uses: actions/checkout@v2 | ||
if: env.HAVESECRET != null | ||
|
||
- name: Check out loomio_subs engine | ||
uses: actions/checkout@v2 | ||
if: env.HAVESECRET != null | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
repository: loomio/loomio_subs | ||
path: engines | ||
ref: master | ||
|
||
- name: Check out loomio-website gem | ||
uses: actions/checkout@v2 | ||
if: env.HAVESECRET != null | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
repository: loomio/loomio-website | ||
path: website | ||
ref: main | ||
|
||
- name: build website | ||
run: | | ||
cd website | ||
npm install | ||
npm run build | ||
cd .. | ||
cp -R ./website/_site/* ./public/ |