Skip to content

Commit

Permalink
Merge pull request #47 from openpracticelibrary/strapi-upgrade
Browse files Browse the repository at this point in the history
upgrade strapi to full 3.x release, resolved deployment issues
  • Loading branch information
Shahein Moussavi authored Jun 7, 2020
2 parents fbca770 + 367c91a commit cda6eb9
Show file tree
Hide file tree
Showing 35 changed files with 756 additions and 5,168 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rc-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
registry_password: ${{ secrets.QUAY_PASS }}

- name: Tag with latest for future full releases
uses: tinact/docker.image_retag@1.0.2
uses: tinact/docker.image-retag@1.0.2
with:
image_name: openpracticelibrary/opl-content-api
image_old_tag: ${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
registry_password: ${{ secrets.QUAY_PASS }}

- name: Tag with latest for future full releases
uses: tinact/docker.image_retag@1.0.2
uses: tinact/docker.image-retag@1.0.2
with:
image_name: openpracticelibrary/opl-content-api
image_old_tag: ${{ github.sha }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
junit.xml
############################
# OS X
############################
Expand Down
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
FROM node:lts
ENV NO_UPDATE_NOTIFIER=true
RUN apt-get update
RUN apt-get install -y jq
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .

# # Required while upstream changes are still in PR review
# RUN npm run patch
# RUN jq '.dependencies |= .+ { "@apollo/federation": "^0.15.0" }' node_modules/strapi-plugin-graphql/package.json > tmp.package.json && mv tmp.package.json node_modules/strapi-plugin-graphql/package.json
# RUN npm install
# End required for PR review
RUN npx patch-package
RUN jq '.dependencies |= .+ { "@apollo/federation": "^0.15.0" }' node_modules/strapi-plugin-graphql/package.json > tmp.package.json && mv tmp.package.json node_modules/strapi-plugin-graphql/package.json
RUN npm install

ENV NODE_ENV="production"
RUN npm run build -- --clean
EXPOSE 1337
RUN NODE_ENV="production" npm run build -- --clean
ENTRYPOINT ["npm", "start"]

52 changes: 0 additions & 52 deletions api/article/config/routes.json

This file was deleted.

8 changes: 0 additions & 8 deletions api/article/controllers/article.js

This file was deleted.

Loading

0 comments on commit cda6eb9

Please sign in to comment.