Compare commits

...

2 commits

Author SHA1 Message Date
asonix 56902cf065 ls public again
Some checks failed
/ prepare-suffix (push) Successful in 1s
/ publish-docker (push) Has been skipped
/ build-assets (push) Successful in 3m35s
/ build-containers (map[name:amd64 platform:amd64]) (push) Failing after 29s
/ build-containers (map[name:arm64v8 platform:arm64]) (push) Failing after 26s
2024-02-14 14:12:32 -06:00
asonix 6e85542b49 Cache ruby, node dependencies 2024-02-14 14:10:56 -06:00

View file

@ -31,13 +31,54 @@ jobs:
apt-get -y install ruby-full libidn-dev
gem install bundler
-
name: Install Dependencies
name: Configure Bundler
run: |
bundle config set --local deployment true
bundle config set --local without 'development test'
bundle config set --local path vendor/bundle
bundle config set silence_root_warning true
-
name: Fetch gem cache
id: gem-cache
uses: https://github.com/actions/cache/restore@v4
with:
path: |
vendor/bundle/
key: gem-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}
-
name: Install gems
if: steps.gem-cache.outputs.cache-hit != 'true'
run: |
bundle install -j$(nproc)
-
name: Save gem cache
if: steps.gem-cache.outputs.cache-hit != 'true'
uses: https://github.com/actions/cache/save@v4
with:
path: |
vendor/bundle/
key: ${{ steps.gem-cache.outputs.cache-primary-key }}
-
name: Fetch node cache
id: node-cache
uses: https://github.com/actions/cache/restore@v4
with:
path: |
node_modules/
key: gem-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}
-
name: Install node packages
if: steps.node-cache.outputs.cache-hit != 'true'
run: |
yarn install --pure-lockfile --production --network-timeout=30000
-
name: Save node cache
if: steps.node-cache.outputs.cache-hit != 'true'
uses: https://github.com/actions/cache/save@v4
with:
path: |
node_modules/
key: ${{ steps.node-cache.outputs.cache-primary-key }}
-
name: Build Assets
run: bundle exec rails assets:precompile
@ -91,7 +132,12 @@ jobs:
path: .
-
name: GUnzip Assets
run: tar -zxf public.tar.gz
run: |
tar -zxf public.tar.gz
echo "ls ."
ls -lh .
echo "ls public"
ls -lh public/
-
name: Prepare Platform
run: |