Skip to content

Commit

Permalink
Create cd-build-backend.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengming-Li authored Apr 10, 2024
1 parent 69654d1 commit 2ccc311
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cd-build-backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name:
Build Backend

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-backend .

- name: Save Docker Image as Tarball
run: docker save berkeleytime-backend:latest -o berkeleytime-backend.tar

- name: Upload Docker Image as Artifact
uses: actions/upload-artifact@v2
with:
name: backend
path: berkeleytime-backend.tar

0 comments on commit 2ccc311

Please sign in to comment.