Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Updated static build action
Browse files Browse the repository at this point in the history
  • Loading branch information
awshuss committed Nov 22, 2023
1 parent 684e7b4 commit c4b2c1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/actions/build-static/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ runs:

- name: Build olcs static
run: |
tar -cvzf static.tar.gz public
mv public static
shell: bash

- name: upload staic artifact
uses: actions/upload-artifact@v3
with:
name: olcs-static-artifact
path: ./static.tar.gz
path: ./static
retention-days: 1

2 changes: 1 addition & 1 deletion .github/workflows/non-prod-selfserve-web-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: olcs-static-artifact
path: static.tar.gz
path: static

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
4 changes: 2 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ COPY php-fpm/php-fpm.d/www.conf /usr/local/etc/php-fpm.d/www.conf

# FROM registry.olcs.dev-dvsacloud.uk/k8s/php:7.4.22-fpm-alpine as intermediate

RUN mkdir -p /opt/dvsa/olcs-frontend /var/log/dvsa /tmp/Entity/Proxy && \
RUN mkdir -p /opt/dvsa/olcs-frontend/public /var/log/dvsa /tmp/Entity/Proxy && \
touch /var/log/dvsa/frontend.log

ADD selfserve.tar.gz /opt/dvsa/olcs-frontend

ADD static.tar.gz /opt/dvsa/olcs-frontend/public/static
COPY static /opt/dvsa/olcs-frontend/public

COPY start.sh /start.sh
RUN chmod +x /start.sh
Expand Down

0 comments on commit c4b2c1a

Please sign in to comment.