Skip to content

Commit

Permalink
Create cd-build-frontend.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengming-Li authored Apr 10, 2024
1 parent 2ccc311 commit 8b31b87
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cd-build-frontend.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8b31b87

Please sign in to comment.