Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pr #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on:
pull_request:
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# This enables task distribution via Nx Cloud
# Run this command as early as possible, before dependencies are installed
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
# Connect your workspace by running "nx connect" and uncomment this
- run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci --legacy-peer-deps
- uses: nrwl/nx-set-shas@v4
# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
- run: npx nx affected -t lint test build
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ node_modules/
build/
out/
dist/



.nx/cache
.nx/workspace-data
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM nxdev

ARG APP_NAME

WORKDIR /app

COPY . .
#RUN npm run build
#RUN mkdir -p /usr/local/lib/alloy
#RUN mv /app/apps/scripts/docker-entrypoint.sh /usr/local/lib/alloy/
#RUN chmod 755 /usr/local/lib/alloy/docker-entrypoint.sh
#RUN ln -s -f /usr/local/lib/alloy/docker-entrypoint.sh /usr/local/bin/


#EXPOSE 3000


#ENTRYPOINT ["docker-entrypoint.sh"]
#CMD []
10 changes: 10 additions & 0 deletions Dockerfileskel
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:20

ARG APP_NAME

#RUN apt-get remove --purge libde265-0 libaprutil1 libapr1 curl libcurl3-gnutls libcurl4 libcurl4-openssl-dev linux-libc-dev libwebp-dev libwebp7 libwebpdemux2 libwebpmux3 openssh-client -y

WORKDIR /app
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm install
23 changes: 23 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"dependsOn": [
"^build",
"typecheck"
],
"outputs": [
"{projectRoot}/dist"
],
"cache": true
},
"typecheck": {
"cache": true
},
"lint": {
"cache": true
}
},
"defaultBase": "main",
"nxCloudAccessToken": "YmQwN2EwMzItMzNkMC00MzA3LWI2ODYtODgwYTg4YmU1ZTQ0fHJlYWQtd3JpdGU="
}
Loading