Have nightly build create a production build of tailwind
This commit is contained in:
parent
1b053ffd1b
commit
608888317b
1
.github/workflows/docker-nightly.yaml
vendored
1
.github/workflows/docker-nightly.yaml
vendored
@ -1,6 +1,7 @@
|
|||||||
name: Build nightly docker
|
name: Build nightly docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 2 * * *"
|
- cron: "0 2 * * *"
|
||||||
|
|
||||||
|
@ -5,6 +5,15 @@ DATE=$(date +"%Y%m%d")
|
|||||||
VERSION="${DATE}-nightly"
|
VERSION="${DATE}-nightly"
|
||||||
GIT_COMMIT=$(git rev-list -1 HEAD)
|
GIT_COMMIT=$(git rev-list -1 HEAD)
|
||||||
|
|
||||||
|
# Create production build of Tailwind CSS
|
||||||
|
pushd ../../build/javascript >> /dev/null
|
||||||
|
# Install the tailwind & postcss CLIs
|
||||||
|
npm install --quiet --no-progress
|
||||||
|
# Run the tailwind CLI and pipe it to postcss for minification.
|
||||||
|
# Save it to a temp directory that we will reference below.
|
||||||
|
NODE_ENV="production" ./node_modules/.bin/tailwind build | ./node_modules/.bin/postcss > "../../webroot/js/web_modules/tailwindcss/dist/tailwind.min.css"
|
||||||
|
popd
|
||||||
|
|
||||||
echo "Building Docker image ${DOCKER_IMAGE}..."
|
echo "Building Docker image ${DOCKER_IMAGE}..."
|
||||||
|
|
||||||
# Change to the root directory of the repository
|
# Change to the root directory of the repository
|
||||||
|
Loading…
x
Reference in New Issue
Block a user