sparse-intern-71089
07/01/2020, 3:52 PMhundreds-musician-51496
07/01/2020, 4:14 PMimage.apply(...)
do the trick?lemon-agent-27707
07/01/2020, 5:37 PMlemon-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,
},
);
dazzling-sundown-39670
07/01/2020, 7:43 PMGIT_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'),
lemon-agent-27707
07/01/2020, 7:49 PMdazzling-sundown-39670
07/02/2020, 6:16 AMdazzling-sundown-39670
07/02/2020, 6:20 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 helpdazzling-sundown-39670
07/02/2020, 7:53 AMexport 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 thisdazzling-sundown-39670
07/02/2020, 7:56 AMdazzling-sundown-39670
07/02/2020, 7:56 AMdazzling-sundown-39670
07/02/2020, 8:06 AM