Skip to content

Commit 16f0d0c

Browse files
committed
feat: introduce the logic to list/promote/stop squids
0 parents  commit 16f0d0c

25 files changed

+7255
-0
lines changed

.env.default

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORS_ORIGIN=^http:\/\/localhost:[0-9]{1,10}$
2+
CORS_METHODS=*
3+
4+
HTTP_SERVER_PORT=5001
5+
HTTP_SERVER_HOST=0.0.0.0
6+
AWS_CLUSTER_NAME=dev-main
7+
8+
AUTH_TOKEN=
9+
AWS_ACCESS_KEY_ID=
10+
AWS_SECRET_ACCESS_KEY=
11+
DAPPS_PG_COMPONENT_PSQL_CONNECTION_STRING=

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/deployer.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
deployment-environment:
7+
required: true
8+
type: choice
9+
options:
10+
- dev
11+
- stg
12+
- prd
13+
default: prd
14+
description: Environment
15+
tag:
16+
required: true
17+
default: "latest"
18+
type: string
19+
description: "Docker tag (quay.io)"
20+
21+
jobs:
22+
deployment:
23+
if: ${{ inputs.deployment-environment }}
24+
name: "Deploy to: ${{ inputs.deployment-environment }}"
25+
runs-on: ubuntu-latest
26+
environment: ${{ inputs.deployment-environment }}
27+
steps:
28+
- name: Trigger deployment
29+
id: deploy
30+
uses: decentraland/dcl-deploy-action@main
31+
with:
32+
dockerImage: "quay.io/decentraland/squid-management-server-:${{ inputs.tag }}"
33+
serviceName: "squid-management-server"
34+
env: ${{ inputs.deployment-environment }}
35+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docker.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI/CD on main branch
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
cd:
10+
uses: decentraland/actions/.github/workflows/build-quay-main.yml@main
11+
with:
12+
service-name: squid-management-server
13+
deployment-environment: dev stg
14+
secrets:
15+
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
16+
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}

.github/workflows/node.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: node
2+
3+
on: push
4+
5+
jobs:
6+
install:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Start postgres
11+
run: docker compose up -d --renew-anon-volumes
12+
- name: Use Node.js 18.x
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 18.x
16+
cache: npm
17+
- name: install
18+
run: npm install
19+
- name: build
20+
run: npm run build
21+
- name: linter
22+
run: npm run lint
23+
if: ${{ always() }}
24+
- name: test
25+
run: npm run test
26+
- name: integration test
27+
run: npm run test:integration
28+
- name: Report coverage
29+
uses: coverallsapp/github-action@master
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build and publish
2+
on:
3+
release:
4+
types:
5+
- created
6+
jobs:
7+
build:
8+
name: "Build & publish: ${{github.ref_name}}"
9+
uses: decentraland/actions/.github/workflows/build-quay-main.yml@main
10+
with:
11+
service-name: squid-management-server
12+
docker-tag: "${{ github.ref_name }}"
13+
secrets:
14+
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
15+
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.env
2+
node_modules

0 commit comments

Comments
 (0)