Skip to content

Commit e2fe3cb

Browse files
authored
Merge pull request #183 from pluginpal/feature/test-server-deployment
chore: clean up the dokku build after deployment
2 parents 158df71 + a382577 commit e2fe3cb

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/deploy-test-server.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Test deploy
22

33
on:
44
workflow_dispatch:
5-
push:
5+
pull_request:
66
branches:
7-
- master
7+
- master
8+
- develop
89

910
jobs:
1011
# preflight-checks:
@@ -75,4 +76,5 @@ jobs:
7576
sudo docker tag strapi-playground:latest strapi-playground:$STRAPI_LATEST_IMAGE
7677
dokku git:from-image strapi strapi-playground:$STRAPI_LATEST_IMAGE
7778
sudo docker system prune --all --force
79+
sudo rm -rf /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar
7880

playground/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev l
44

55
WORKDIR /opt/
66
COPY ./package.json ./yarn.lock ./
7-
COPY ./.yalc ./.yalc
7+
8+
WORKDIR /opt/node_modules/
9+
COPY ./.yalc ./
10+
11+
WORKDIR /opt/
812
RUN npm config set fetch-retry-maxtimeout 600000 -g && yarn install
913

1014
WORKDIR /opt/app

playground/config/plugins.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
module.exports = {
22
webtools: {
3-
enabled: false,
3+
enabled: true,
44
config: {
55
website_url: 'https://www.pluginpal.io'
66
}
77
},
88

99
'webtools-addon-sitemap': {
10-
enabled: false,
10+
enabled: true,
1111
},
1212

1313
// 'webtools-addon-redirects': {

0 commit comments

Comments
 (0)