From 38e4004f3d0bf4c5673d649547dd90b4766b6c09 Mon Sep 17 00:00:00 2001 From: cshcwu Date: Tue, 12 Dec 2023 10:52:51 +0000 Subject: [PATCH] Add GitHub Actions workflows --- .github/workflows/docker-random-data.yml | 18 ++++++++++++++++++ .github/workflows/docker-real-data.yml | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/docker-random-data.yml create mode 100644 .github/workflows/docker-real-data.yml diff --git a/.github/workflows/docker-random-data.yml b/.github/workflows/docker-random-data.yml new file mode 100644 index 0000000..054cdab --- /dev/null +++ b/.github/workflows/docker-random-data.yml @@ -0,0 +1,18 @@ +name: Docker Build with Random Data + +on: + push: + branches: [ main ] + +jobs: + build-and-run-random-data: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Build Docker Image with Random Data + run: docker build --tag cohortingtool/webapp:random --build-arg random=true . + + - name: Run Docker Container + run: docker run --name cogstackcohort-random -d -p 3000:3000 cohortingtool/webapp:random diff --git a/.github/workflows/docker-real-data.yml b/.github/workflows/docker-real-data.yml new file mode 100644 index 0000000..b83e646 --- /dev/null +++ b/.github/workflows/docker-real-data.yml @@ -0,0 +1,19 @@ +name: Docker Build with Real Data + +on: + push: + branches: [ main ] + +jobs: + build-and-run-real-data: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Build Docker Image with Real Data + run: docker build --tag cohortingtool/webapp . + + - name: Run Docker Container + run: docker run --name cogstackcohort -d -p 3000:3000 cohortingtool/webapp +