Skip to content

Commit

Permalink
set context
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Sep 13, 2024
1 parent 1b96d0b commit 8fceab5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/image-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
required: false
type: boolean
default: false
context:
required: false
type: string
default: "."
suffix:
required: false
type: string
Expand Down Expand Up @@ -77,7 +81,7 @@ jobs:
uses: docker/build-push-action@v4
with:
platforms: ${{ inputs.platforms }}
context: .
context: ${{ inputs.context }}
file: ${{ inputs.dockerfile }}
build-args: |
VOLTO_VERSION=${{ inputs.volto-version }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
with:
volto-version: ${{ needs.meta.outputs.VOLTO_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-builder
context: pnpm
dockerfile: Dockerfile.builder
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
Expand All @@ -51,6 +52,7 @@ jobs:
with:
volto-version: ${{ needs.meta.outputs.VOLTO_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-prod-config
context: pnpm
dockerfile: Dockerfile.prod
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
Expand All @@ -66,6 +68,7 @@ jobs:
with:
volto-version: ${{ needs.meta.outputs.VOLTO_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-dev
context: pnpm
dockerfile: Dockerfile.dev
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
Expand All @@ -81,6 +84,7 @@ jobs:
with:
volto-version: ${{ needs.meta.outputs.VOLTO_VERSION }}
image-name: plone/plone-frontend
context: pnpm
dockerfile: Dockerfile
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
Expand All @@ -99,6 +103,7 @@ jobs:
with:
volto-version: ${{ needs.meta.outputs.VOLTO_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-builder
context: yarn
dockerfile: Dockerfile.builder
platforms: ${{ needs.meta.outputs.PLATFORMS }}
suffix: -yarn
Expand All @@ -111,6 +116,7 @@ jobs:
with:
volto-version: ${{ needs.meta.outputs.VOLTO_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-prod-config
context: yarn
dockerfile: Dockerfile.prod
platforms: ${{ needs.meta.outputs.PLATFORMS }}
suffix: -yarn
Expand All @@ -125,6 +131,7 @@ jobs:
with:
volto-version: ${{ needs.meta.outputs.VOLTO_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-dev
context: yarn
dockerfile: Dockerfile.dev
platforms: ${{ needs.meta.outputs.PLATFORMS }}
suffix: -yarn
Expand All @@ -140,6 +147,7 @@ jobs:
with:
volto-version: ${{ needs.meta.outputs.VOLTO_VERSION }}
image-name: plone/plone-frontend
context: yarn
dockerfile: Dockerfile
platforms: ${{ needs.meta.outputs.PLATFORMS }}
suffix: -yarn
Expand Down

0 comments on commit 8fceab5

Please sign in to comment.