Skip to content

Commit

Permalink
Merge pull request #10 from skohub-io/6-source
Browse files Browse the repository at this point in the history
6 source
  • Loading branch information
sroertgen authored Apr 5, 2023
2 parents 3ff2544 + 5ecf368 commit acba19d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,20 @@ jobs:

- run: chmod -R 777 data # user in container is node which won't have write access to public

- run: git clone https://github.com/skohub-io/skohub-docker-vocabs.git data/
- run: git clone https://github.com/skohub-io/skohub-docker-vocabs.git data/ # <-- add link to your repo here

- name: make .env file

run: echo "BASEURL=/skohub-docker-vocabs" > .env

- name: build public dir with docker image
run: docker run -v $(pwd)/public:/app/public -v $(pwd)/data:/app/data -v $(pwd)/.env:/app/.env skohub/skohub-vocabs-docker:latest
run: >
docker run
-v $(pwd)/public:/app/public
-v $(pwd)/data:/app/data
-v $(pwd)/.env:/app/.env
-e GATSBY_RESPOSITORY_URL=https://github.com/skohub-io/skohub-docker-vocabs.git
skohub/skohub-vocabs-docker:latest
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,27 @@ jobs:

- run: mkdir public

- run: chmod -R 777 public # user in container is node which won't have write access to public

- run: mkdir data

- run: git clone https://github.com/skohub-io/skohub-docker-vocabs.git data/
- run: chmod -R 777 data # user in container is node which won't have write access to public

- run: git clone https://github.com/skohub-io/skohub-docker-vocabs.git data/ # <-- add link to your repo here

- name: make .env file
run: echo "BASERURL=/skohub-docker-vocabs" > .env

run: echo "BASEURL=/skohub-docker-vocabs" > .env

# below add link to your repo after -e GATSBY_REPOSITORY_URL=...
- name: build public dir with docker image
run: docker run -v $(pwd)/public:/app/public -v $(pwd)/data:/app/data -v $(pwd)/.env:/app/.env skohub/skohub-vocabs-docker:latest
run: >
docker run
-v $(pwd)/public:/app/public
-v $(pwd)/data:/app/data
-v $(pwd)/.env:/app/.env
-e GATSBY_RESPOSITORY_URL=https://github.com/skohub-io/skohub-docker-vocabs.git
skohub/skohub-vocabs-docker:latest
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit acba19d

Please sign in to comment.