improved release workflow

This commit is contained in:
Yannic Kilcher
2022-12-24 23:55:20 +01:00
parent ce92f184c5
commit 5284e30202
2 changed files with 22 additions and 3 deletions
+6 -2
View File
@@ -3,7 +3,10 @@ name: Build
on:
workflow_call:
inputs:
folder:
dockerfile:
required: true
type: string
context:
required: true
type: string
image-name:
@@ -48,7 +51,8 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v3.2.0
with:
context: ${{ inputs.folder }}
file: ${{ inputs.dockerfile }}
context: ${{ inputs.context }}
build-args: ${{ inputs.build-args }}
push: true
tags: ${{ steps.meta.outputs.tags }}
+16 -1
View File
@@ -9,5 +9,20 @@ jobs:
uses: ./.github/workflows/docker-build.yaml
with:
image-name: oasst-backend
folder: backend
context: .
dockerfile: docker/Dockerfile.backend
build-args: ""
build-web:
uses: ./.github/workflows/docker-build.yaml
with:
image-name: oasst-web
context: .
dockerfile: docker/Dockerfile.website
build-args: ""
build-bot:
uses: ./.github/workflows/docker-build.yaml
with:
image-name: oasst-discord-bot
context: .
dockerfile: docker/Dockerfile.discord-bot
build-args: ""