Explorar el Código

Merge branch 'beta.3.buildpack-ci' of https://github.com/porter-dev/porter into beta.3.buildpack-ci

jusrhee hace 5 años
padre
commit
3ba9dda6ee
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      internal/integrations/ci/actions/steps.go

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

@@ -45,7 +45,7 @@ func getConfigurePorterStep(porterTokenSecretName string) GithubActionYAMLStep {
 
 const dockerBuildPush string = `
 export $(echo "${{secrets.%s}}" | xargs)
-docker build %s --file %s -t %s:$(git rev-parse --short HEAD)
+sudo docker build %s --file %s -t %s:$(git rev-parse --short HEAD)
 sudo docker push %s:$(git rev-parse --short HEAD)
 `
 
@@ -62,7 +62,7 @@ export $(echo "${{secrets.%s}}" | xargs)
 sudo add-apt-repository ppa:cncf-buildpacks/pack-cli
 sudo apt-get update
 sudo apt-get install pack-cli
-pack build %s:$(git rev-parse --short HEAD) --path %s --builder heroku/buildpacks:18
+sudo pack build %s:$(git rev-parse --short HEAD) --path %s --builder heroku/buildpacks:18
 sudo docker push %s:$(git rev-parse --short HEAD)
 `