Skip to content

Commit

Permalink
improved release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yk committed Dec 24, 2022
1 parent ce92f18 commit 5284e30
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Build
on:
workflow_call:
inputs:
folder:
dockerfile:
required: true
type: string
context:
required: true
type: string
image-name:
Expand Down Expand Up @@ -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 }}
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""

0 comments on commit 5284e30

Please sign in to comment.