Skip to content

Commit

Permalink
ci: change kubeconfig step
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmann committed Jun 10, 2024
1 parent ccd6d24 commit 4951976
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cleanup_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:

steps:
- name: Kubernetes login
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBE_CONFIG }}

- name: Delete Helm Chart
run: |
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/deploy_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ jobs:
.deployment.image.tag = "pr-${{ github.event.number }}" |
.deployment.name = "project-website-pr-${{ github.event.number }}" |
.deployment.namespace = "project-website-pr-${{ github.event.number }}"
' ./k8s/values/on-pr.yaml
' ./k8s/values/develop.yaml
- name: Kubernetes login
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBE_CONFIG }}

- name: Install Helm Chart
run: |
Expand All @@ -81,4 +82,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: |
"Deployment of PR #${{ github.event.number }} successful :rocket: \br\br You can visit it at https://pr-${{ github.event.number }}.website.dev.green-ecolution.de"
Deployment of PR #${{ github.event.number }} successful :rocket:
You can access the deployment at [pr-${{ github.event.number }}.website.dev.green-ecolution.de](https://pr-${{ github.event.number }}.website.dev.green-ecolution.de) to review the changes :eyes:
:warning: **Please note that this deployment is temporary and will be deleted after the PR is closed.**

0 comments on commit 4951976

Please sign in to comment.