From 8b31b8720fdea56b5fa660cc35a18b2db2407062 Mon Sep 17 00:00:00 2001 From: Chengming-Li <115936688+Chengming-Li@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:31:57 -0700 Subject: [PATCH] Create cd-build-frontend.yml --- .github/workflows/cd-build-frontend.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cd-build-frontend.yml diff --git a/.github/workflows/cd-build-frontend.yml b/.github/workflows/cd-build-frontend.yml new file mode 100644 index 000000000..4f5aac740 --- /dev/null +++ b/.github/workflows/cd-build-frontend.yml @@ -0,0 +1,26 @@ +name: + Build Frontend + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Build Docker Image + run: docker build -t berkeleytime-frontend . + + - name: Save Docker Image as Tarball + run: docker save berkeleytime-frontend:latest -o berkeleytime-frontend.tar + + - name: Upload Docker Image as Artifact + uses: actions/upload-artifact@v2 + with: + name: frontend + path: berkeleytime-frontend.tar