Skip to content

Commit c5d3afb

Browse files
committed
Updates for deployment
1 parent 34c16b6 commit c5d3afb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.controlplane/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,13 @@ ENV RAILS_ENV=production \
6363

6464
RUN yarn res:build
6565
RUN bin/rails react_on_rails:locale
66-
RUN bin/rails assets:precompile
6766

6867

68+
# Precompile assets and remove build dependencies
69+
# Note, if you have some Node.js programs, you need to install those in a different
70+
# directory so you don't delete them here.
71+
RUN bin/rails assets:precompile && rm -rf lib/bs && rm -rf node_modules
72+
6973
ENTRYPOINT ["./.controlplane/entrypoint.sh"]
7074

7175
CMD ["./bin/rails", "server"]

.github/actions/deploy-to-control-plane/action.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ runs:
5959
shell: bash
6060
run: |
6161
cpln image docker-login
62-
BUILDKIT_PROGRESS=plain cpl build-image -a ${{ inputs.app_name }} --commit ${{steps.vars.outputs.sha_short}} --org ${{inputs.org}}
62+
# Use BUILDKIT_PROGRESS=plain to get more verbose logging of the build
63+
# BUILDKIT_PROGRESS=plain cpl build-image -a ${{ inputs.app_name }} --commit ${{steps.vars.outputs.sha_short}} --org ${{inputs.org}}
64+
cpl build-image -a ${{ inputs.app_name }} --commit ${{steps.vars.outputs.sha_short}} --org ${{inputs.org}}
6365
# --cache /tmp/.docker-cache
6466
- name: Deploy to Control Plane
6567
shell: bash

0 commit comments

Comments
 (0)