Skip to content

Commit

Permalink
Rename run.ps1 to run and fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterDeKort committed Nov 26, 2024
1 parent 3d98902 commit 3272686
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cnab/Invoke-CNAB.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ if ($RunAsContainer) {
"-v", "$($MetaJsonPath):/variables.json",
"--env", "CNAB_ACTION=$Action",
"--env", "INSTALLATION_METADATA=/variables.json",
"--rm", "$CNABImage", "/cnab/app/run.ps1"
"--rm", "$CNABImage", "/cnab/app/run"
)

docker run $dockerRunArgs
Expand Down
11 changes: 8 additions & 3 deletions cnab/app/run.ps1 → cnab/app/run
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ trap {
break
}

. $PSScriptRoot/app.ps1
. $PSScriptRoot/utils.ps1
. $PSScriptRoot/container-registry-discovery.ps1
$PWD.Path
(Get-Location).Path
(Resolve-Path '.').Path
Get-ChildItem -Path . | ForEach-Object { Write-Output $_.FullName }

. cnab/app/app.ps1
. cnab/app/utils.ps1
. cnab/app/container-registry-discovery.ps1

if (-not $env:INSTALLATION_METADATA) {
throw "INSTALLATION_METADATA is not set"
Expand Down
2 changes: 1 addition & 1 deletion cnab/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ RUN chmod 755 /cnab/app/run.ps1
ARG BUNDLE_VERSION
ENV BUNDLE_VERSION=${BUNDLE_VERSION}

CMD ["/cnab/app/run.ps1"]
CMD ["/cnab/app/run"]

0 comments on commit 3272686

Please sign in to comment.