|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
name: Docker
|
|
|
|
|
name: Docker CI
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
schedule:
|
|
|
|
@ -29,24 +29,30 @@ jobs:
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
- name: Install python
|
|
|
|
|
uses: actions/setup-python@v5
|
|
|
|
|
with:
|
|
|
|
|
python-version: 3.x
|
|
|
|
|
|
|
|
|
|
- name: Check files
|
|
|
|
|
uses: pre-commit/action@v3.0.1
|
|
|
|
|
|
|
|
|
|
- name: Install pnpm
|
|
|
|
|
uses: pnpm/action-setup@v4
|
|
|
|
|
with:
|
|
|
|
|
version: 10
|
|
|
|
|
run_install: false
|
|
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
with:
|
|
|
|
|
node-version: 20
|
|
|
|
|
cache: 'pnpm'
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
run: pnpm install
|
|
|
|
|
|
|
|
|
|
- name: Lint frontend
|
|
|
|
|
run: pnpm run lint
|
|
|
|
|
|
|
|
|
@ -104,10 +110,6 @@ jobs:
|
|
|
|
|
NEXT_PUBLIC_REVISION="${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}" \
|
|
|
|
|
pnpm run build
|
|
|
|
|
|
|
|
|
|
- name: Confirm build
|
|
|
|
|
run: ls -lhR .next/standalone || echo "❌ No standalone output!"
|
|
|
|
|
|
|
|
|
|
# Docker logins
|
|
|
|
|
- name: Log into registry ${{ env.REGISTRY }}
|
|
|
|
|
if: github.event_name != 'pull_request'
|
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
@ -146,6 +148,7 @@ jobs:
|
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
|
|
|
|
|
|
|
|
|
# https://github.com/docker/build-push-action/issues/252 / https://github.com/moby/buildkit/issues/1896
|
|
|
|
|
- name: Move cache
|
|
|
|
|
run: |
|
|
|
|
|
rm -rf /tmp/.buildx-cache
|
|
|
|
|