Skip to content

Commit

Permalink
Support Docker --build-arg (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx authored Feb 12, 2025
1 parent 00cea5e commit 4023684
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ inputs:
This action will not push a `latest` tag; if you want a `latest` tag, you can use this input or `docker-additional-tags`.
default: 'latest-cache'
docker-additional-tags:
description: 'Comma-separated list of additional tags to add to the image.'
description: 'Comma-separated list of additional tags to add to the image, e.g. `latest,v1.0.0`.'
required: false
docker-build-args:
description: 'Comma-separated list of build arguments to pass to Docker when building, e.g. `ARG1=value1,ARG2=value2`.'
required: false
severity:
description: |
Expand Down Expand Up @@ -168,7 +171,7 @@ runs:
- name: Install 3lv CLI
uses: 3lvia/cli/setup@trunk
with:
version: '0.28.1' # TODO: remove this (which will get latest version) when 3lv CLI is stable
version: '0.30.0' # TODO: remove this (which will get latest version) when 3lv CLI is stable

- name: Install Cosign if not using Elvia runner
if: ${{ !startsWith(runner.name, 'elvia-runner-') && inputs.sign-image == 'true' }}
Expand Down Expand Up @@ -208,6 +211,7 @@ runs:
3LV_BUILD_CONTEXT: ${{ inputs.docker-build-context }}
3LV_GO_MAIN_PACKAGE_DIR: ${{ inputs.go-main-package-dir }}
3LV_CACHE_TAG: ${{ inputs.docker-cache-tag }}
3LV_BUILD_ARGS: ${{ inputs.docker-build-args }}
3LV_SCAN_SEVERITY: ${{ inputs.severity }}
3LV_AZURE_TENANT_ID: ${{ inputs.AZURE_TENANT_ID }}
3LV_AZURE_CLIENT_ID: ${{ inputs.AZURE_CLIENT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ runs:
- name: Install 3lv CLI
uses: 3lvia/cli/setup@trunk
with:
version: '0.28.1' # TODO: remove this (which will get latest version) when 3lv CLI is stable
version: '0.30.0' # TODO: remove this (which will get latest version) when 3lv CLI is stable

- name: Deploy
shell: bash
Expand Down

0 comments on commit 4023684

Please sign in to comment.