Skip to content

Commit

Permalink
feat: support changing working directory (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev authored May 8, 2024
1 parent 1fb33a2 commit 41cfe24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ inputs:
disables cache.
required: false
default: 'false'
working_directory:
description: |
Changes working directory for whole build.
For example, setting this to `./abc/` would cause for the recipe to be read from `./abc/recipes/recipe.yml`.
required: false
default: ./

runs:
using: "composite"
Expand Down Expand Up @@ -134,6 +140,7 @@ runs:
- name: Build Image
shell: bash
if: ${{ inputs.squash != 'true' }}
working-directory: ${{ inputs.working_directory }}
env:
COSIGN_PRIVATE_KEY: ${{ inputs.cosign_private_key }}
GH_TOKEN: ${{ inputs.registry_token }}
Expand All @@ -148,6 +155,7 @@ runs:
- name: Build Squashed Image
shell: bash
if: ${{ inputs.squash == 'true' }}
working-directory: ${{ inputs.working_directory }}
env:
COSIGN_PRIVATE_KEY: ${{ inputs.cosign_private_key }}
GH_TOKEN: ${{ inputs.registry_token }}
Expand Down

0 comments on commit 41cfe24

Please sign in to comment.