Browse Source

add sudo to build commands as well

Alexander Belanger 5 năm trước cách đây
mục cha
commit
d217a97979
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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)
 `