@@ -11,13 +11,13 @@ jobs:
11
11
12
12
steps :
13
13
- name : Checkout code
14
- uses : actions/checkout@v4.1.7
14
+ uses : actions/checkout@v3 # 최신 버전 사용
15
15
16
16
- name : Set up Docker Buildx
17
- uses : docker/setup-buildx-action@v3.5.0
17
+ uses : docker/setup-buildx-action@v2 # 최신 버전 사용
18
18
19
19
- name : Cache Docker layers
20
- uses : actions/cache@v4.0.2
20
+ uses : actions/cache@v3 # 최신 버전 사용
21
21
with :
22
22
path : /tmp/.buildx-cache
23
23
key : ${{ runner.os }}-buildx-${{ github.sha }}
@@ -27,15 +27,15 @@ jobs:
27
27
- name : Log in to Google Cloud
28
28
uses :
google-github-actions/[email protected]
29
29
with :
30
- credentials_json : ${{ secrets.GCP_CREDENTIALS }}
30
+ credentials_json : ${{ secrets.ORG_DEV_GCP_CREDENTIALS }}
31
31
32
32
- name : Configure docker for gcloud
33
33
run : gcloud auth configure-docker asia-northeast3-docker.pkg.dev
34
34
35
35
- name : Build and push Docker image
36
36
run : |
37
37
docker buildx build --push \
38
- --tag asia-northeast3-docker.pkg.dev/gcuflow/flow-dev /flow-file-dev:${{ github.sha }} .
38
+ --tag asia-northeast3-docker.pkg.dev/${{ secrets.ORG_DEV_GCP_PROJECT_ID }}/${{ secrets.ORG_DEV_GCP_REGISTRY_NAME }} /flow-file-dev:${{ github.sha }}${{ github.run_attempt }} .
39
39
40
40
deploy :
41
41
runs-on : ubuntu-latest
@@ -47,20 +47,20 @@ jobs:
47
47
with :
48
48
repository : code-review-platform-flow/flow-manifest
49
49
path : manifests
50
- token : ${{ secrets.FLOW_DEPLOY_KEY }}
50
+ token : ${{ secrets.ORG_GITHUB_KEY }}
51
51
52
52
- name : List files for debugging
53
53
run : ls -R
54
54
55
55
- name : Update manifest
56
56
run : |
57
- sed -i "s|image: .*|image: asia-northeast3-docker.pkg.dev/gcuflow/flow-dev /flow-file-dev:${{ github.sha }}|" manifests/flow-file-dev/deployment.yaml
57
+ sed -i "s|image: .*|image: asia-northeast3-docker.pkg.dev/${{ secrets.ORG_DEV_GCP_PROJECT_ID }}/${{ secrets.ORG_DEV_GCP_REGISTRY_NAME }} /flow-file-dev:${{ github.sha }}${{ github.run_attempt }}|" manifests/flow-file-dev/deployment.yaml
58
58
59
59
- name : Commit and push changes
60
60
working-directory : manifests
61
61
run : |
62
62
git config --global user.name 'github-actions'
63
63
git config --global user.email '[email protected] '
64
64
git add .
65
- git commit -m "Update image to asia-northeast3-docker.pkg.dev/gcuflow/flow-dev /flow-file-dev:${{ github.sha }}"
65
+ git commit -m "Update image to asia-northeast3-docker.pkg.dev/${{ secrets.ORG_DEV_GCP_PROJECT_ID }}/${{ secrets.ORG_DEV_GCP_REGISTRY_NAME }} /flow-file-dev:${{ github.sha }}${{ github.run_attempt }}"
66
66
git push
0 commit comments