Skip to content

Commit 56db5f2

Browse files
committed
modify github actino for argocd
1 parent 5b22cce commit 56db5f2

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

.github/workflows/gradle.yml

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ on:
1717
permissions:
1818
id-token: write
1919
contents: read
20+
packages: write
2021

2122
env:
2223
REGION: ap-northeast-2
23-
24+
CLUSTER_NAME: tmcdapne2-nhwy
25+
APP_NAME: demoapp
26+
2427
jobs:
2528
build:
2629
if: ${{ github.event.pull_request.merged }}
@@ -88,27 +91,27 @@ jobs:
8891
# codedeploy-application: demo_app
8992
# codedeploy-deployment-group: demo_app
9093

91-
# - name: Checkout k8s-env
92-
# uses: actions/checkout@v4
93-
# with:
94-
# token: ${{ secrets.INFRA_GITHUB_TOKEN }}
95-
# repository: DevopsArtFactory/k8s-chart-value
96-
# ref: main
94+
- name: Checkout k8s-env
95+
uses: actions/checkout@v4
96+
with:
97+
token: ${{ secrets.INFRA_GITHUB_TOKEN }}
98+
repository: DevopsArtFactory/k8s-chart-value
99+
ref: main
97100

98-
# - name: Change Image tag
99-
# run: |
100-
# sed -i '/^/s/tag:.*/tag: ${{ steps.vars.outputs.tag }}/' ./${CLUSTER_NAME}/${APP_NAME}/image.yaml
101-
# ls
102-
# shell: bash
103-
104-
# - name: GIT commit and push docs
105-
# env:
106-
# CI_COMMIT_MESSAGE: Update Tag - ${{ steps.vars.outputs.tag }}
107-
# CI_COMMIT_AUTHOR: zerone
108-
# run: |
109-
# git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
110-
# git config --global user.email "[email protected]"
111-
# git status
112-
# git add -A
113-
# git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
114-
# git push origin main
101+
- name: Change Image tag
102+
run: |
103+
sed -i '/^/s/tag:.*/tag: ${{ steps.vars.outputs.tag }}/' ./${CLUSTER_NAME}/${APP_NAME}/image.yaml
104+
ls
105+
shell: bash
106+
107+
- name: GIT commit and push docs
108+
env:
109+
CI_COMMIT_MESSAGE: Update Tag - ${{ steps.vars.outputs.tag }}
110+
CI_COMMIT_AUTHOR: zerone
111+
run: |
112+
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
113+
git config --global user.email "[email protected]"
114+
git status
115+
git add -A
116+
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
117+
git push origin main

0 commit comments

Comments
 (0)