Explorar o código

handle empty env casing

Alexander Belanger %!s(int64=5) %!d(string=hai) anos
pai
achega
3c6d8928bf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/integrations/ci/actions/steps.go

+ 1 - 1
internal/integrations/ci/actions/steps.go

@@ -46,7 +46,7 @@ func getConfigurePorterStep(porterTokenSecretName string) GithubActionYAMLStep {
 const dockerBuildPush string = `
 export $(echo "${{secrets.%s}}" | xargs)
 echo "${{secrets.%s}}" > ./env_porter
-sudo docker build %s $(cat ./env_porter | sed 's@^@--build-arg @g' | paste -s -d " " -) --file %s -t %s:$(git rev-parse --short HEAD)
+sudo docker build %s $(cat ./env_porter | awk 'NF' | sed 's@^@--build-arg @g' | paste -s -d " " -) --file %s -t %s:$(git rev-parse --short HEAD)
 sudo docker push %s:$(git rev-parse --short HEAD)
 `