Context files are immutable

This commit is contained in:
Ettore Di Giacinto
2020-12-12 11:55:25 +01:00
parent 797a34ba49
commit 95da20e366
4 changed files with 5 additions and 6 deletions

View File

@@ -237,14 +237,13 @@ RUN ` + s
return spec return spec
} }
// TODO: docker build image first. Then a backend can be used to actually spin up a container with it and run the steps within // RenderBuildImage renders the dockerfile of the image used as a pre-build step
func (cs *LuetCompilationSpec) RenderBuildImage() (string, error) { func (cs *LuetCompilationSpec) RenderBuildImage() (string, error) {
return cs.genDockerfile(cs.GetSeedImage(), cs.GetPreBuildSteps()), nil return cs.genDockerfile(cs.GetSeedImage(), cs.GetPreBuildSteps()), nil
} }
// TODO: docker build image first. Then a backend can be used to actually spin up a container with it and run the steps within // RenderStepImage renders the dockerfile used for the image used for building the package
func (cs *LuetCompilationSpec) RenderStepImage(image string) (string, error) { func (cs *LuetCompilationSpec) RenderStepImage(image string) (string, error) {
return cs.genDockerfile(image, cs.BuildSteps()), nil return cs.genDockerfile(image, cs.BuildSteps()), nil
} }

View File

@@ -2,8 +2,8 @@ image: "alpine"
prelude: prelude:
- echo foo > /test - echo foo > /test
- echo bar > /test2 - echo bar > /test2
- chmod +x generate.sh
steps: steps:
- echo artifact5 > /test5 - echo artifact5 > /test5
- echo artifact6 > /test6 - echo artifact6 > /test6
- chmod +x generate.sh
- ./generate.sh - ./generate.sh

View File

@@ -2,8 +2,8 @@ image: "alpine"
prelude: prelude:
- echo foo > /test - echo foo > /test
- echo bar > /test2 - echo bar > /test2
- chmod +x generate.sh
steps: steps:
- echo artifact5 > /test5 - echo artifact5 > /test5
- echo artifact6 > /test6 - echo artifact6 > /test6
- chmod +x generate.sh
- ./generate.sh - ./generate.sh

View File

@@ -2,8 +2,8 @@ image: "alpine"
prelude: prelude:
- echo foo > /test - echo foo > /test
- echo bar > /test2 - echo bar > /test2
- chmod +x generate.sh
steps: steps:
- echo artifact5 > /test5 - echo artifact5 > /test5
- echo artifact6 > /test6 - echo artifact6 > /test6
- chmod +x generate.sh
- ./generate.sh - ./generate.sh