dazzling-sundown-39670
07/01/2020, 3:52 PMconst image = repository.buildAndPushImage(buildOptions)
(using awsx/ecr
)
I want helm to be run after it's built and pushed but I can't use it with dependsOn
because it's just outputhundreds-musician-51496
07/01/2020, 4:14 PMimage.apply(...)
do the trick?lemon-agent-27707
07/01/2020, 5:37 PMdazzling-sundown-39670
07/01/2020, 7:42 PMconst buildOptions: docker.DockerBuild = {
dockerfile: '../docker/Dockerfile.production',
context: '../..',
args: {
run: process.env.GITHUB_RUN_NUMBER
}
}
export const image = repository.buildAndPushImage(buildOptions)
export const runNumber = process.env.GITHUB_RUN_NUMBER
const helmChart = new k8s.helm.v2.Chart(
'magneto2',
{
path: '../helm',
values: {
image,
},
},
{
provider: k8sProvider,
},
);
GIT_RUN_NUMBER
? I tried changing it and I can see runNumber
changing but it doesn't retrigger the buildlemon-agent-27707
07/01/2020, 7:49 PMpath : image.apply( v=> '../heml'),
dazzling-sundown-39670
07/02/2020, 6:16 AMType 'Output<string>' is not assignable to type 'string'.ts(2322)
lemon-agent-27707
07/02/2020, 6:36 AMdazzling-sundown-39670
07/02/2020, 7:53 AMvalues
but it didn't seem to helpexport const image = repository.buildAndPushImage(buildOptions)
export const tag = image.apply(i => i.split(':').reverse()[0])
const helmChart = new k8s.helm.v2.Chart(
'magneto2',
{
path: '../helm',
values: {
image: {
repository: repository.repository.repositoryUrl,
tag
},
},
},
{
provider: k8sProvider,
},
);
Like this