-
Notifications
You must be signed in to change notification settings - Fork 1
OCI 마이그레이션 #491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
OCI 마이그레이션 #491
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
6884606
mongodb username, password 설정 추가
asp345 c714cf5
aws->oci 전환
asp345 d7d1e41
fix actions
asp345 74325ff
hardcode compartmentId
asp345 a1e99ad
add ocir namespace
asp345 9269753
mock storageClient, mailClient
asp345 fed468c
add jersey hk2 reflect-config
asp345 fde6170
update OciConfig.kt
asp345 4c620e4
use apikey instead
asp345 9d2304f
add image tag updater
asp345 ab7f921
fix image updater
asp345 18a95d5
remove workload identity deps:
asp345 44e4606
change vault secret property name
asp345 e6cdcf8
fix OciConfig.kt
asp345 9ec60b0
fix OciConfig.kt
asp345 04bac6a
use oci config auth in local profile
asp345 648d9cf
move jersey-hk2 hints
asp345 53fb4a3
keep s3:// scheme for compatibility
asp345 d4a748a
use spring-waffle 2.1.0
asp345 e1d295e
use async oci sdk for StorageClient and MailClient
asp345 b0d7832
remove unneeded mongodb username and password
asp345 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Update image tag in waffle-world-oci | ||
| description: Updates the image tag in waffle-world-oci ArgoCD manifests | ||
|
|
||
| inputs: | ||
| app-id: | ||
| required: true | ||
| private-key: | ||
| required: true | ||
| ocir-registry: | ||
| required: true | ||
| ocir-namespace: | ||
| required: true | ||
| ocir-repository: | ||
| required: true | ||
| image-tag: | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Generate GitHub App token | ||
| id: app-token | ||
| uses: actions/create-github-app-token@v1 | ||
| with: | ||
| app-id: ${{ inputs.app-id }} | ||
| private-key: ${{ inputs.private-key }} | ||
| owner: wafflestudio | ||
| repositories: waffle-world-oci | ||
|
|
||
| - name: Update image tag | ||
| shell: bash | ||
| env: | ||
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
| OCIR_IMAGE: ${{ inputs.ocir-registry }}/${{ inputs.ocir-namespace }}/${{ inputs.ocir-repository }} | ||
| OCIR_REPOSITORY: ${{ inputs.ocir-repository }} | ||
| IMAGE_TAG: ${{ inputs.image-tag }} | ||
| run: | | ||
| REPO="wafflestudio/waffle-world-oci" | ||
| ENV_DIR=$(dirname "$OCIR_REPOSITORY") | ||
| DIR="argocd/$ENV_DIR" | ||
|
|
||
| for FILE_PATH in $(gh api "repos/$REPO/contents/$DIR" --jq '.[] | select(.name | endswith(".yaml") or endswith(".yml")) | .path'); do | ||
| CONTENT=$(gh api "repos/$REPO/contents/$FILE_PATH" --jq '.content' | base64 -d) | ||
| if echo "$CONTENT" | grep -q "image: $OCIR_IMAGE:"; then | ||
| UPDATED=$(echo "$CONTENT" | sed "s|image: $OCIR_IMAGE:[^ ]*|image: $OCIR_IMAGE:$IMAGE_TAG|g") | ||
| if [ "$CONTENT" != "$UPDATED" ]; then | ||
| SHA=$(gh api "repos/$REPO/contents/$FILE_PATH" --jq '.sha') | ||
| gh api --method PUT "repos/$REPO/contents/$FILE_PATH" \ | ||
| -f message="build: update $OCIR_REPOSITORY to $IMAGE_TAG" \ | ||
| -f content="$(echo "$UPDATED" | base64 -w 0)" \ | ||
| -f sha="$SHA" | ||
| echo "Updated $FILE_PATH" | ||
| fi | ||
| fi | ||
| done | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.