Test cicd #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./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 |