Skip to content

Commit d825d05

Browse files
authored
Update dockerfile, adjust envs, add express for simple enpoints (#1)
1 parent e9491a4 commit d825d05

22 files changed

+2423
-148
lines changed

.env.example

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
ORACLE_CONTRACT_ADDRESS=
33
SLA_ALLOCATOR_CONTRACT_ADDRESS=
44
WALLET_PRIVATE_KEY=
5-
FILECOIN_RPC_URL=
6-
CHAIN=
7-
TRIGGER_INTERVAL_HOURS=
8-
CDP_SERVICE_URL=
5+
RPC_URL=
6+
CHAIN_ID=
7+
TRIGGER_SLI_JOB_INTERVAL_CRON=
8+
TRIGGER_CLAIMS_TRACKING_JOB_INTERVAL_CRON=
9+
CDP_SERVICE_URL=
10+
JOB_TRIGGER_AUTH_TOKEN=
11+
APP_PORT=

.github/workflows/manually-trigger-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323
jobs:
2424
trigger-production-deploy:
2525
runs-on: ubuntu-latest
26-
if: ${{ github.ref_name == 'main' && inputs.version != '' && inputs.environment == 'production' }}
26+
if: ${{ inputs.environment == 'production' }}
2727
steps:
2828
- name: Trigger production deploy
2929
uses: neti-filplus-infra/filplus-deploy-action@main

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ WORKDIR /app
1010
COPY package*.json ./
1111
RUN npm ci --omit=dev
1212
COPY --from=build /app/dist ./dist
13+
EXPOSE 3000
1314
CMD ["node", "dist/index.js"]

0 commit comments

Comments
 (0)