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