Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c5ff158ce1 | |||
| 0052ab2f15 | |||
| b28f08ab22 | |||
| 4b69ca4866 | |||
| bc992e2897 | |||
| 0b2b68e3a2 | |||
| d4aef31b4b | |||
| ab2e69c1ae | |||
| 5afc08d278 | |||
| 8616dcea74 | |||
| 017cf265ce |
24
.github/workflows/build.yaml
vendored
24
.github/workflows/build.yaml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
uses: juliangruber/read-file-action@v1
|
||||
with:
|
||||
path: ./version
|
||||
|
||||
### off-test ###
|
||||
- name: Install Docker // Docker 설치
|
||||
run: |
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||
@ -43,7 +43,7 @@ jobs:
|
||||
|
||||
- name: Push to Docker
|
||||
run: docker push harbor.icurfer.com/msa-demo/msa-django-ansible:${{ steps.img-ver.outputs.content }}
|
||||
|
||||
### off-test ###
|
||||
## pre cd
|
||||
- name: Setup Kustomize
|
||||
uses: yokawasa/action-setup-kube-tools@v0.9.2
|
||||
@ -63,6 +63,26 @@ jobs:
|
||||
cd cd-msa-django-ansible/overlays/dev/
|
||||
kustomize edit set image harbor.icurfer.com/msa-demo/msa-django-ansible:${{ steps.img-ver.outputs.content }}
|
||||
cat kustomization.yaml
|
||||
# - name: Update Kubernetes resources
|
||||
# run: |
|
||||
# cd cd-msa-django-ansible/overlays/dev/
|
||||
|
||||
# echo "✅ Updating image tag..."
|
||||
# kustomize edit set image harbor.icurfer.com/msa-demo/msa-django-ansible:${{ steps.img-ver.outputs.content }}
|
||||
|
||||
# echo "✅ Installing yq..."
|
||||
# wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_amd64
|
||||
# chmod +x /usr/local/bin/yq
|
||||
|
||||
# echo "✅ Updating container name in patch-deployment.yaml..."
|
||||
# yq e -i '.spec.template.spec.containers[0].name = "msa-django-ansible-${{ steps.img-ver.outputs.content }}"' patch-deployment.yaml
|
||||
|
||||
# echo "✅ Final patch-deployment.yaml content:"
|
||||
# cat patch-deployment.yaml
|
||||
|
||||
# echo "✅ Final kustomization.yaml content:"
|
||||
# cat kustomization.yaml
|
||||
|
||||
|
||||
## cd commit
|
||||
- name: Commit files
|
||||
|
||||
@ -8,7 +8,7 @@ from .models import AnsibleTask
|
||||
|
||||
|
||||
def get_ssh_key_from_auth_server(access_token: str) -> str:
|
||||
url = settings.AUTH_VERIFY_URL + "/api/auth/ssh-key/view/"
|
||||
url = settings.AUTH_APP_URL + "/api/auth/ssh-key/view/"
|
||||
print(url)
|
||||
headers = {"Authorization": f"Bearer {access_token}"}
|
||||
response = requests.get(url, headers=headers)
|
||||
|
||||
@ -102,7 +102,7 @@ LOGGING = {
|
||||
if DEBUG:
|
||||
LOGGING['loggers']['django.db.backends']['level'] = 'DEBUG'
|
||||
|
||||
AUTH_VERIFY_URL = os.environ.get('AUTH_VERIFY_URL', 'NONE')
|
||||
AUTH_APP_URL = os.environ.get('AUTH_APP_URL', 'NONE')
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user