Created the release.yml workflow
This commit is contained in:
parent
62f9831a05
commit
5f3122349f
23
.github/workflows/release.yml
vendored
Normal file
23
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: Docker Build and Artifact Upload
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build -t backend .
|
||||
working-directory: /
|
||||
|
||||
- name: Save Docker Image as Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: backend
|
||||
path: /
|
Loading…
x
Reference in New Issue
Block a user