-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from pluginpal/feature/60-use-same-collection…
…-with-different-patterns Feature/60 use same collection with different patterns
- Loading branch information
Showing
14 changed files
with
579 additions
and
450 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 |
---|---|---|
|
@@ -27,54 +27,54 @@ jobs: | |
environment: | ||
name: Test | ||
url: https://test.pluginpal.io | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
# - name: Set up Docker | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18 | ||
# cache: 'yarn' | ||
|
||
- name: Install plugin dependencies | ||
run: yarn install | ||
# - name: Install plugin dependencies | ||
# run: yarn install | ||
|
||
- name: Build the packages | ||
run: yarn run build | ||
# - name: Build the packages | ||
# run: yarn run build | ||
|
||
- name: Install de playground dependencies | ||
run: yarn playground:install | ||
# - name: Install de playground dependencies | ||
# run: yarn playground:install | ||
|
||
- name: Build a Docker image of the playground | ||
run: | | ||
cd playground | ||
docker build \ | ||
--build-arg PUBLIC_URL=${{ secrets.TEST_URL }} \ | ||
-t strapi-playground:latest . | ||
docker save -o strapi-playground-latest.tar strapi-playground:latest | ||
# - name: Build a Docker image of the playground | ||
# run: | | ||
# cd playground | ||
# docker build \ | ||
# --build-arg PUBLIC_URL=${{ secrets.TEST_URL }} \ | ||
# -t strapi-playground:latest . | ||
# docker save -o strapi-playground-latest.tar strapi-playground:latest | ||
|
||
- name: Transfer the Docker image to the Dokku server | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_CI_USERNAME }} | ||
password: ${{ secrets.SSH_CI_PASSWORD }} | ||
source: playground/strapi-playground-latest.tar | ||
target: /var/lib/dokku/data/storage/strapi/docker-images | ||
# - name: Transfer the Docker image to the Dokku server | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.SSH_HOST }} | ||
# username: ${{ secrets.SSH_CI_USERNAME }} | ||
# password: ${{ secrets.SSH_CI_PASSWORD }} | ||
# source: playground/strapi-playground-latest.tar | ||
# target: /var/lib/dokku/data/storage/strapi/docker-images | ||
|
||
- name: Deploy the Dokku app based on the Docker image | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_CI_USERNAME }} | ||
password: ${{ secrets.SSH_CI_PASSWORD }} | ||
script_stop: true | ||
script: | | ||
sudo docker load -i /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar | ||
STRAPI_LATEST_IMAGE=$(sudo docker images --format "{{.ID}}" strapi-playground:latest) | ||
sudo docker tag strapi-playground:latest strapi-playground:$STRAPI_LATEST_IMAGE | ||
dokku git:from-image strapi strapi-playground:$STRAPI_LATEST_IMAGE | ||
sudo docker system prune --all --force | ||
sudo rm -rf /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar | ||
# - name: Deploy the Dokku app based on the Docker image | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.SSH_HOST }} | ||
# username: ${{ secrets.SSH_CI_USERNAME }} | ||
# password: ${{ secrets.SSH_CI_PASSWORD }} | ||
# script_stop: true | ||
# script: | | ||
# sudo docker load -i /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar | ||
# STRAPI_LATEST_IMAGE=$(sudo docker images --format "{{.ID}}" strapi-playground:latest) | ||
# sudo docker tag strapi-playground:latest strapi-playground:$STRAPI_LATEST_IMAGE | ||
# dokku git:from-image strapi strapi-playground:$STRAPI_LATEST_IMAGE | ||
# sudo docker system prune --all --force | ||
# sudo rm -rf /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar | ||
|
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
Oops, something went wrong.