Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runner): issues with terragrunt install #210

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading