Skip to content

Commit

Permalink
Merge pull request #471 from Duke-MatSci/develop
Browse files Browse the repository at this point in the history
feat(CI/CD): Enabling Managed Services
  • Loading branch information
tholulomo authored Feb 6, 2024
2 parents 04fb950 + 9b81097 commit e43e72e
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/prodci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Use NodeJS
uses: actions/setup-node@v3
with:
node-version: "17.9.1"
node-version: '17.9.1'
- name: Install frontend dependencies & test
run: |
cd app
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Use NodeJS
uses: actions/setup-node@v3
with:
node-version: "17.9.1"
node-version: '17.9.1'
- name: Install frontend dependencies & test
run: |
cd resfulservice
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Use NodeJS
uses: actions/setup-node@v3
with:
node-version: "18.4.0"
node-version: '18.4.0'
- name: Install root
run: npm install
- name: Download Asset Artifacts
Expand Down Expand Up @@ -128,6 +128,18 @@ jobs:
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
buildMgdServicesApp:
if: github.event_name == 'push'
needs: release
uses: Duke-MatSci/materialsmine/.github/workflows/prodBuilder.yml@main
with:
myid: managedservices
context: ./services
tags: dukematsci/prod-mgdservices
next_ver: ${{ needs.release.outputs.version_output}}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
buildWhyisApp:
if: github.event_name == 'push'
needs: release
Expand All @@ -142,14 +154,15 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
testBuilds:
runs-on: ubuntu-latest
needs: [buildFrontendApp, buildBackendApp, buildWhyisApp]
needs:
[buildFrontendApp, buildBackendApp, buildMgdServicesApp, buildWhyisApp]
env:
MM_MONGO_USER: ${{secrets.MM_MONGO_USER}}
MM_MONGO_PWD: ${{secrets.MM_MONGO_PWD}}
MONGO_TEST: ${{secrets.MONGO_TEST}}
MONGO_TEST_PWD: ${{secrets.MONGO_TEST_PWD}}
MM_DB: ${{secrets.MM_DB}}
MONGO_ADDRESS: ${{secrets.MONGO_ADDRESS}}
MONGO_ADDRESS: ${{secrets.MONGO_ADDRESS}}
MONGO_PORT: ${{secrets.MONGO_PORT}}
NM_MONGO_DUMP: ${{secrets.NM_MONGO_DUMP}}
TKNS: ${{secrets.TKNS}}
Expand All @@ -164,6 +177,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Download and run images
run : docker-compose -f docker-compose.test.git.yml up -d
run: docker-compose -f docker-compose.test.git.yml up -d
- name: Kill containers
run: docker-compose down -v

0 comments on commit e43e72e

Please sign in to comment.