diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 5697d5b0dd..2a8c2ff91f 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -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 }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a7dd89c83c..5132c6e9bd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: ""