Run kustomize edit set image =.dkr.ecr.us-east-1.amazonaws.com/***:52 frt-kustomization.yaml
38
##[debug]/usr/bin/bash -e /home/runner/work/_temp/53625473-a3b2-4ac6-a2e8-331c02e16403.sh
39
Error: invalid format of image, use one of the following options:
40
-
=:
41 -
=@
42 -
=
43 -
:
44 -
@
45
Usage:
46
kustomize edit set image [flags]
47
48
Examples:
49
50
The command
51
set image postgres=eu.gcr.io/my-project/postgres:latest my-app=my-registry/my-app@sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d3
52
will add
53
54
images:
55 -
name: postgres
56
newName: eu.gcr.io/my-project/postgres
57
newTag: latest
58 -
digest: sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d3
59
name: my-app
60
newName: my-registry/my-app
61
62
to the kustomization file if it doesn’t exist,
63
and overwrite the previous ones if the image name exists.
64
65
The command
66
set image node:8.15.0 mysql=mariadb alpine@sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d3
67
will add
68
69
images:
70 -
name: node
71
newTag: 8.15.0
72 -
name: mysql
73
newName: mariadb
74 -
digest: sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d3
75
name: alpine
76
77
to the kustomization file if it doesn’t exist,
78
and overwrite the previous ones if the image name exists.
79
80
The image tag can only contain alphanumeric, ‘.’, ‘_’ and ‘-‘. Passing * (asterisk) either as the new name,
81
the new tag, or the digest will preserve the appropriate values from the kustomization file.
82
83
84
Flags:
85
-h, –help help for image
86
87
Global Flags:
88
–stack-trace print a stack-trace on error
89
90
Error: Process completed with exit code 1.
91
##[debug]Finishing: Update kustomization
Apply kustomize manifests to the EKS ***
0s
1
##[debug]Evaluating condition for step: ‘Apply kustomize manifests to the EKS ***’
2
##[debug]Evaluating: success()
3
##[debug]Evaluating success:
4
##[debug]=> false
5
##[debug]Result: false
Complete job
0s -
name: Update kustomization
run: |
image_url=”${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/${{ secrets.AWS_FRONTEND_ECR_REPO_NAME }}”
image_tag=”${{ github.run_number }}”
kustomize edit set image frontend=”$image_url:$image_tag” frt-kustomization.yaml
Pedro Mihali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.