Skip to content

Commit

Permalink
Merge pull request #16 from infralovers/container-build-args
Browse files Browse the repository at this point in the history
fix: Adding Container build args
  • Loading branch information
mabunixda authored May 8, 2024
2 parents 3f6f5ef + 4c90d61 commit 889ba02
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ on:
required: false
type: string
default: ${{ github.repository_owner }}
build_args:
description: 'The build arguments for the image'
required: false
type: string
default: ''

jobs:

Expand Down Expand Up @@ -124,6 +129,7 @@ jobs:
context: ${{ steps.get_dir.outputs.docker_directory }}
file: ${{ inputs.dockerfile }}
tags: ${{ steps.prep.outputs.tags }}
build-args: ${{ inputs.build_args }}

- name: Scan Docker Image
uses: mondoohq/actions/[email protected]
Expand Down Expand Up @@ -158,6 +164,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' && needs.pre-commit.outputs.version != '' }}
tags: ${{ steps.prep.outputs.tags }}
platforms: ${{ inputs.platforms }}
build-args: ${{ inputs.build_args }}

release:
needs: [ pre-commit, build ]
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pr-valid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ on:
- assigned


permissions:
pull-requests: write
statuses: write


jobs:
pr-validation:
uses: ./.github/workflows/pr-validation.yml
secrets:
BOT_ACCESS_TOKEN: "${{ fromJSON(secrets.VAULT_KV_1D187965_OP_GITHUB_INFRALOVERS).PAT }}"
BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}

0 comments on commit 889ba02

Please sign in to comment.