This repository was archived by the owner on Nov 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .github
Original file line number Diff line number Diff line change 77 push :
88 merge_group :
99jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Set up QEMU
14+ uses : docker/setup-qemu-action@v3
15+ - name : Set up Docker Buildx
16+ uses : docker/setup-buildx-action@v3
17+ - name : Login to Docker Hub
18+ uses : docker/login-action@v3
19+ with :
20+ registry : ghcr.io
21+ username : ${{ github.repository_owner }}
22+ password : ${{ secrets.GITHUB_TOKEN }}
23+ - name : Build and push
24+ uses : docker/build-push-action@v5
25+ with :
26+ context : .
27+ push : true
28+ tags : |
29+ static-analysis
30+
31+
1032 # TODO: build container once, before running static-analysis
1133 static-analysis :
1234 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ FROM nixos/nix:latest AS builder
2+ WORKDIR /app/
3+ COPY shell.nix /app/shell.nix
4+ RUN nix-shell
5+
6+ COPY composer /app/composer
7+ COPY composer.json /app/composer.json
8+ COPY composer.lock /app/composer.lock
9+ RUN nix-shell --run "./composer install --no-scripts --no-cache --no-autoloader"
10+
11+ COPY package.json /app/package.json
12+ COPY pnpm-lock.yaml /app/pnpm-lock.yaml
13+ RUN nix-shell --run "pnpm install --frozen-lockfile"
14+
You can’t perform that action at this time.
0 commit comments