Skip to content

Commit

Permalink
Merge pull request #58 from kotalco/prepare-prod
Browse files Browse the repository at this point in the history
update ci jobs with prod eks
  • Loading branch information
mabdulmoghni authored Oct 22, 2024
2 parents 921347a + 423ac17 commit 6238847
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-cloud-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
push: true
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
18 changes: 13 additions & 5 deletions .github/workflows/publish-cloud-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,22 @@ jobs:
run: |
envsubst < ./prod-managed-dashboard.yaml | tee prod-managed-dashboard.yaml
- name: K8s-set-context to DO managed-production cluster
uses: azure/k8s-set-context@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID_EKS_ADMIN }}
aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY_EKS_ADMIN }}
aws-region: eu-central-1

- name: K8s-set-context to EKS production cluster
if: github.ref == 'refs/heads/main'
uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG_DO_MANAGED_PRODUCTION }}
kubeconfig: ${{ secrets.PROD_KUBECONFIG_EKS }}

- name: Deploy to the DO managed-production cluster
uses: azure/k8s-deploy@v1
- name: Deploy to the EKS managed-production cluster
uses: azure/k8s-deploy@v5
with:
namespace: kotal
manifests: |
Expand Down

0 comments on commit 6238847

Please sign in to comment.