Skip to content

Commit

Permalink
feat(Github): Adds some files needed for docker build/deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
KevSanchez committed Aug 1, 2024
1 parent da96376 commit 4b9658b
Show file tree
Hide file tree
Showing 9 changed files with 907 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ jobs:
id: extract_branch

- name: Set environment name
if: ${{ steps.applicable_check.outputs.flag }}
id: environment_name
run: |
{
Expand All @@ -270,7 +269,7 @@ jobs:
ECR_REPOSITORY_CLIENT: ${{ secrets.TF_CLIENT_REPOSITORY_NAME }}
ECR_REPOSITORY_CMS: ${{ secrets.TF_CMS_REPOSITORY_NAME }}
# ECR_REPOSITORY_TILER: ${{ secrets.TF_TILER_REPOSITORY_NAME }}
IMAGE_TAG: ${{ steps.extract_branch.outputs.branch == 'main' && 'production' || steps.extract_branch.outputs.branch }}
IMAGE_TAG: ${{ steps.extract_branch.outputs.branch == 'main' && 'production' || 'staging' }}
run: |
echo "version: '3.3'" > docker-compose.yml
echo "services:" >> docker-compose.yml
Expand Down
3 changes: 3 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ COPY .browserslistrc \
.env.local \
next.config.mjs \
package.json \
entrypoint.sh \
postcss.config.mjs \
README.md \
tailwind.config.ts \
tsconfig.json \
yarn.lock \
./

RUN chmod +x entrypoint.sh

RUN yarn install

RUN chown -R node:node /app
Expand Down
2 changes: 2 additions & 0 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ COPY .browserslistrc \
.yarnrc.yml \
./

RUN chmod +x entrypoint.sh

RUN yarn install

RUN yarn build
Expand Down
Empty file added client/public/.delete-later
Empty file.
894 changes: 894 additions & 0 deletions cms/.yarn/releases/yarn-4.2.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cms/.yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.0.cjs
yarnPath: .yarn/releases/yarn-4.2.1.cjs
2 changes: 2 additions & 0 deletions cms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ COPY .nvmrc \
yarn.lock \
./

RUN chmod +x entrypoint.sh

RUN yarn install

ENV PATH /app/node_modules/.bin:$PATH
Expand Down
2 changes: 2 additions & 0 deletions cms/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ COPY .env \
yarn.lock \
./

RUN chmod +x entrypoint.sh

RUN yarn install

RUN yarn strapi ts:generate-types
Expand Down
3 changes: 2 additions & 1 deletion cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
"license": "MIT",
"packageManager": "[email protected]"
}

0 comments on commit 4b9658b

Please sign in to comment.