Skip to content

Commit 0dea66d

Browse files
fix : DEV CI-CD 로직 수정
1 parent 855ce19 commit 0dea66d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci-cd-dev.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4.1.7
14+
uses: actions/checkout@v3 # 최신 버전 사용
1515

1616
- name: Set up Docker Buildx
17-
uses: docker/setup-buildx-action@v3.5.0
17+
uses: docker/setup-buildx-action@v2 # 최신 버전 사용
1818

1919
- name: Cache Docker layers
20-
uses: actions/cache@v4.0.2
20+
uses: actions/cache@v3 # 최신 버전 사용
2121
with:
2222
path: /tmp/.buildx-cache
2323
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -27,15 +27,15 @@ jobs:
2727
- name: Log in to Google Cloud
2828
uses: google-github-actions/[email protected]
2929
with:
30-
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
30+
credentials_json: ${{ secrets.ORG_DEV_GCP_CREDENTIALS }}
3131

3232
- name: Configure docker for gcloud
3333
run: gcloud auth configure-docker asia-northeast3-docker.pkg.dev
3434

3535
- name: Build and push Docker image
3636
run: |
3737
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 }} .
3939
4040
deploy:
4141
runs-on: ubuntu-latest
@@ -47,20 +47,20 @@ jobs:
4747
with:
4848
repository: code-review-platform-flow/flow-manifest
4949
path: manifests
50-
token: ${{ secrets.FLOW_DEPLOY_KEY }}
50+
token: ${{ secrets.ORG_GITHUB_KEY }}
5151

5252
- name: List files for debugging
5353
run: ls -R
5454

5555
- name: Update manifest
5656
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
5858
5959
- name: Commit and push changes
6060
working-directory: manifests
6161
run: |
6262
git config --global user.name 'github-actions'
6363
git config --global user.email '[email protected]'
6464
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 }}"
6666
git push

0 commit comments

Comments
 (0)