-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from Giveth/staging
v1.0.0 First release of October - Getting ready for GIV launch
- Loading branch information
Showing
45 changed files
with
18,625 additions
and
6,611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
AdminBro.UserComponents = {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: CI/CD | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
# I commented the postgres container to reduce time of CI/CD but we can undo that after adding integration tests | ||
# services: | ||
# postgres: | ||
# image: postgres:12 | ||
# env: | ||
# POSTGRES_USER: giveth_user | ||
# POSTGRES_PASSWORD: mypass | ||
# POSTGRES_DB: giveth | ||
# options: >- | ||
# --health-cmd pg_isready | ||
# --health-interval 10s | ||
# --health-timeout 5s | ||
# --health-retries 5 | ||
# ports: | ||
# - 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- name: install dependencies | ||
run: npm ci | ||
- name: run tests | ||
run: npm run test | ||
|
||
|
||
deploy: | ||
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'|| github.ref == 'refs/heads/staging' | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: develop deploy | ||
if: github.ref == 'refs/heads/develop' | ||
uses: garygrossgarten/[email protected] | ||
with: | ||
command: cd impact-graph && git checkout develop && git pull && npm ci && npm run typeorm:cli:live -- migration:run && npm run serve; | ||
host: ${{ secrets.DEVELOP_HOST }} | ||
username: ${{ secrets.DEVELOP_USERNAME }} | ||
privateKey: ${{ secrets.DEVELOP_PRIVATE_KEY}} | ||
|
||
- name: staging deploy | ||
if: github.ref == 'refs/heads/staging' | ||
uses: garygrossgarten/[email protected] | ||
with: | ||
command: cd impact-graph && git checkout staging && git pull && npm ci && npm run typeorm:cli:live -- migration:run && npm run serve; | ||
host: ${{ secrets.STAGING_HOST }} | ||
username: ${{ secrets.STAGING_USERNAME }} | ||
privateKey: ${{ secrets.STAGING_PRIVATE_KEY}} | ||
|
||
- name: production deploy | ||
if: github.ref == 'refs/heads/master' | ||
uses: garygrossgarten/[email protected] | ||
with: | ||
command: cd impact-graph && git checkout master && git pull && npm ci && npm run typeorm:cli:live -- migration:run && npm run serve; | ||
host: ${{ secrets.PRODUCTION_HOST }} | ||
username: ${{ secrets.PRODUCTION_USERNAME }} | ||
privateKey: ${{ secrets.PRODUCTION_PRIVATE_KEY}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ DEFAULT_ORGANISATION=giveth | |
SEED_PASSWORD=qweqweqwe | ||
SERVER_ADMIN=[email protected] | ||
UPLOAD_FILE_MAX_SIZE=1600000 | ||
ADMIN_BRO_COOKIE_SECRET=test_secret | ||
BCRYPT_SALT=$2b$10$44gNUOnBXavOBMPOqzd48e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.