Skip to content

Commit 8e3eb87

Browse files
committed
chore: scaffold frontend/backend
1 parent 5e9b1d9 commit 8e3eb87

133 files changed

Lines changed: 8150 additions & 161 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn.lock -diff linguist-generated
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build and Push Modeling Commons Images
2+
3+
on:
4+
push:
5+
branches: [main, app/modeling-commons]
6+
paths:
7+
- 'apps/modeling-commons-backend/**'
8+
- 'apps/modeling-commons-frontend/**'
9+
- 'packages/modeling-commons-shared/**'
10+
- 'packages/typescript-config/**'
11+
- 'packages/tailwind-config/**'
12+
- 'packages/nuxt-core/**'
13+
- 'packages/vue-ui/**'
14+
- 'packages/markdown/**'
15+
- 'packages/eslint-config/**'
16+
- 'packages/utils/**'
17+
- 'packages/common-data/**'
18+
- 'packages/template/**'
19+
- 'packages/nuxt-content-assets/**'
20+
- 'packages/netlogo-docs/**'
21+
- 'yarn.lock'
22+
workflow_dispatch:
23+
24+
jobs:
25+
build-and-push:
26+
runs-on: ubuntu-latest
27+
environment: netlogo1
28+
permissions:
29+
contents: read
30+
packages: write
31+
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v3
38+
39+
- name: Login to GitHub Container Registry
40+
uses: docker/login-action@v3
41+
with:
42+
registry: ghcr.io
43+
username: ${{ github.actor }}
44+
password: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Build and push backend image
47+
uses: docker/build-push-action@v5
48+
with:
49+
context: .
50+
file: ./apps/modeling-commons-backend/Dockerfile
51+
push: true
52+
tags: |
53+
ghcr.io/${{ github.repository }}/modeling-commons-backend:${{ github.sha }}
54+
ghcr.io/${{ github.repository }}/modeling-commons-backend:latest
55+
cache-from: type=gha
56+
cache-to: type=gha,mode=max
57+
58+
- name: Build and push frontend image
59+
uses: docker/build-push-action@v5
60+
with:
61+
context: .
62+
file: ./apps/modeling-commons-frontend/Dockerfile
63+
push: true
64+
tags: |
65+
ghcr.io/${{ github.repository }}/modeling-commons-frontend:${{ github.sha }}
66+
ghcr.io/${{ github.repository }}/modeling-commons-frontend:latest
67+
cache-from: type=gha
68+
cache-to: type=gha,mode=max

.vscode/.vscode

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

0 commit comments

Comments
 (0)