Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit 791e438

Browse files
committed
wip
1 parent 28d1263 commit 791e438

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github

.github/workflows/main.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ on:
77
push:
88
merge_group:
99
jobs:
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

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+

0 commit comments

Comments
 (0)