Skip to content

Commit

Permalink
Updates for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Mar 23, 2024
1 parent 34c16b6 commit c5d3afb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .controlplane/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@ ENV RAILS_ENV=production \

RUN yarn res:build
RUN bin/rails react_on_rails:locale
RUN bin/rails assets:precompile


# Precompile assets and remove build dependencies
# Note, if you have some Node.js programs, you need to install those in a different
# directory so you don't delete them here.
RUN bin/rails assets:precompile && rm -rf lib/bs && rm -rf node_modules

ENTRYPOINT ["./.controlplane/entrypoint.sh"]

CMD ["./bin/rails", "server"]
4 changes: 3 additions & 1 deletion .github/actions/deploy-to-control-plane/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ runs:
shell: bash
run: |
cpln image docker-login
BUILDKIT_PROGRESS=plain cpl build-image -a ${{ inputs.app_name }} --commit ${{steps.vars.outputs.sha_short}} --org ${{inputs.org}}
# Use BUILDKIT_PROGRESS=plain to get more verbose logging of the build
# BUILDKIT_PROGRESS=plain cpl build-image -a ${{ inputs.app_name }} --commit ${{steps.vars.outputs.sha_short}} --org ${{inputs.org}}
cpl build-image -a ${{ inputs.app_name }} --commit ${{steps.vars.outputs.sha_short}} --org ${{inputs.org}}
# --cache /tmp/.docker-cache
- name: Deploy to Control Plane
shell: bash
Expand Down

0 comments on commit c5d3afb

Please sign in to comment.