Created the release.yml workflow

This commit is contained in:
Mathias Wagner 2023-09-09 13:45:58 +02:00
parent 62f9831a05
commit 5f3122349f
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

23
.github/workflows/release.yml vendored Normal file
View 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: /