Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional input lockfile for apko actions #156

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apko-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ inputs:
default: .apko.yaml
required: false

lockfile:
description: |
The lock file that constraints versions of packages.
default: ''
required: false

keyring-append:
description: |
The value to pass to --keyring-append.
Expand Down Expand Up @@ -113,6 +119,7 @@ runs:
fi
/usr/bin/apko build \
--vcs=${{ inputs.vcs-url }} \
--lockfile=${{ inputs.lockfile }} \
${{ inputs.debug && '--log-level debug' }} \
${{ inputs.config }} ${{ inputs.tag }} output.tar $keys $repos $packages $archs $build_options
echo EXIT CODE: $?
Expand Down
7 changes: 7 additions & 0 deletions apko-publish/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ inputs:
The config file to use for building the image.
default: .apko.yaml

lockfile:
description: |
The lock file that constraints versions of packages.
required: false
default: ''

tag:
description: |
The tag to use for publishing the image.
Expand Down Expand Up @@ -172,6 +178,7 @@ runs:
export DIGEST_FILE=$(mktemp)
/usr/bin/apko publish \
--vcs=${{ inputs.vcs-url }} \
--lockfile=${{ inputs.lockfile }} \
${{ inputs.debug && '--log-level debug' }} \
--image-refs="${{ inputs.image_refs }}" ${{ inputs.config }} ${{ inputs.tag }} $keys $repos $packages $archs $build_options $sbomPath | tee ${DIGEST_FILE}
echo EXIT CODE: $?
Expand Down
7 changes: 7 additions & 0 deletions apko-snapshot/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ inputs:
required: true
default: .apko.yaml

lockfile:
description: |
The lock file that constraints versions of packages.
required: false
default: ''

base-tag:
description: |
The container repository into which we should publish images.
Expand Down Expand Up @@ -211,6 +217,7 @@ runs:
with:
apko-image: ${{ inputs.apko-image }}
config: ${{ inputs.config }}
lockfile: ${{ inputs.lockfile }}
tag: ${{ inputs.base-tag }}:${{ inputs.target-tag }}-${{ steps.snapshot-date.outputs.date }}
image_refs: ${{ inputs.image_refs }}
keyring-append: ${{ inputs.keyring-append }}
Expand Down