Parcourir la source

Merge pull request #346 from porter-dev/beta.3.patch-github-issue

add sudo to actions steps
abelanger5 il y a 5 ans
Parent
commit
0c6a61f711
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      internal/integrations/ci/actions/steps.go

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

@@ -31,7 +31,7 @@ func getDownloadPorterStep() GithubActionYAMLStep {
 }
 
 const configure string = `
-porter auth login --token ${{secrets.%s}}
+sudo porter auth login --token ${{secrets.%s}}
 sudo porter docker configure
 `
 
@@ -45,7 +45,7 @@ func getConfigurePorterStep(porterTokenSecretName string) GithubActionYAMLStep {
 
 const dockerBuildPush string = `
 docker build %s --file %s -t %s:$(git rev-parse --short HEAD)
-docker push %s:$(git rev-parse --short HEAD)
+sudo docker push %s:$(git rev-parse --short HEAD)
 `
 
 func getDockerBuildPushStep(dockerFilePath, repoURL string) GithubActionYAMLStep {