Skip to content

Commit

Permalink
fix(runner): issues with terragrunt install (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-pad authored Dec 13, 2023
1 parent 2240d2b commit 9e8c060
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ RUN addgroup \
# Copy the binary to the production image from the builder stage
COPY --from=builder /workspace/bin/burrito /usr/local/bin/burrito

RUN mkdir -p /runner
RUN mkdir -p /runner/bin
RUN chmod +x /usr/local/bin/burrito
RUN chown -R burrito:burrito /runner

Expand Down
6 changes: 5 additions & 1 deletion internal/runner/terragrunt/terragrunt.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import (
"github.com/padok-team/burrito/internal/runner/terraform"
)

const (
BinWorkDir = "/runner/bin"
)

type Terragrunt struct {
execPath string
planArtifactPath string
Expand Down Expand Up @@ -122,7 +126,7 @@ func downloadTerragrunt(version string) (string, error) {
}
defer response.Body.Close()

filename := fmt.Sprintf("terragrunt_%s", cpuArch)
filename := fmt.Sprintf("%s/terragrunt_%s", BinWorkDir, cpuArch)
file, err := os.Create(filename)
if err != nil {
return "", err
Expand Down

0 comments on commit 9e8c060

Please sign in to comment.