File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 18
18
options :
19
19
- prod
20
20
- stage
21
- repository :
22
- description : ' Repository'
23
- required : true
21
+ base-tag :
22
+ description : ' Base Image Tag'
24
23
type : string
25
24
tag :
26
- description : ' Tag'
25
+ description : ' Image Tag'
27
26
required : true
28
27
type : string
29
28
@@ -33,26 +32,26 @@ jobs:
33
32
34
33
steps :
35
34
- name : Generate Auth Token
36
- id : auth- token
37
- uses : jamestrousdale/github- app-jwt- token@0.1.4
35
+ uses : actions/create-github-app- token@v1
36
+ id : app-token
38
37
with :
39
38
app-id : ${{ secrets.APP_ID }}
40
39
private-key : ${{ secrets.APP_PRIVATE_KEY }}
41
40
- id : git-user
42
41
name : Set up git user
43
42
uses : haarg/setup-git-user@v1
44
43
with :
45
- jwt : ${{ steps.auth -token.outputs.jwt }}
44
+ app : ${{ steps.app -token.outputs.app-slug }}
46
45
- uses : actions/checkout@v4
47
46
with :
48
- token : ${{ steps.auth -token.outputs.access- token }}
47
+ token : ${{ steps.app -token.outputs.token }}
49
48
- name : Set up Kustomize
50
49
uses : imranismail/setup-kustomize@v2
51
50
- name : Update Image Tag
52
51
working-directory : ./apps/${{ inputs.app }}/environments/${{ inputs.environment }}
53
52
run : |
54
- kustomize edit set image " ${{ inputs.repository }}:latest" " ${{ inputs.repository }}:${{ inputs. tag }}"
53
+ kustomize edit set image ${{ inputs.base-tag }} ${{ inputs.tag }}
55
54
git add .
56
- git commit -m "Update ${{ inputs.app }} to ${{ github.sha }}"
55
+ git commit -m "Update ${{ inputs.app }} to ` ${{ inputs.tag }}` "
57
56
- name : Push manifests
58
57
run : git push
You can’t perform that action at this time.
0 commit comments