Skip to content

Commit

Permalink
AWS Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmaanT committed Mar 5, 2021
1 parent 937cb9f commit 4babe24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"upgrade-cdk": "yarn upgrade cdkactions@latest cdkactions-cli@latest"
},
"dependencies": {
"@pennlabs/kraken": "^0.4.12",
"@pennlabs/kraken": "^0.5.0",
"cdkactions": "^0.2.1",
"constructs": "^3.2.80"
},
Expand Down
8 changes: 4 additions & 4 deletions .github/cdk/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@pennlabs/kraken@^0.4.12":
version "0.4.12"
resolved "https://registry.yarnpkg.com/@pennlabs/kraken/-/kraken-0.4.12.tgz#1e01fcbc07f74c55bf08694d9c224c92a9a29b77"
integrity sha512-Wul9blNqPSnZDTv3zw40tN1bPYXP7/6BgFgopBYbCGFNig9/T7fMBoo8ueRaxrDN5721kkMT7LFElXqFo4VR3g==
"@pennlabs/kraken@^0.5.0":
version "0.5.0"
resolved "https://registry.yarnpkg.com/@pennlabs/kraken/-/kraken-0.5.0.tgz#b79d24f3d34a1ef4aff7edc0e90e5bd9388c1897"
integrity sha512-4QHJ7hPoxswsNpELdlDXX73GKecelCdPXKf7MEJYZ3Xe3UCZGEStVLYFoJUEev+KaxN0IxxTqYZ3kfPqabqEIQ==
dependencies:
cdkactions "^0.2.0"
constructs "^3.2.80"
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/cdkactions_build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,13 @@ jobs:
deploy:
runs-on: ubuntu-latest
container:
image: pennlabs/helm-tools:c964e53d3e3e88d36677e84f5437da40a289c7a4
image: pennlabs/helm-tools:39b60af248944898fcbc58d1fe5b0f1995420aef
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Deploy
run: |-
curl -s -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DO_AUTH_TOKEN" "https://api.digitalocean.com/v2/kubernetes/clusters/${K8S_CLUSTER_ID}/kubeconfig" > /kubeconfig.conf
export KUBECONFIG=/kubeconfig.conf
aws eks --region us-east-1 update-kubeconfig --name production --role-arn arn:aws:iam::${AWS_ACCOUNT_ID}:role/kubectl
# get repo name (by removing owner/organization)
RELEASE_NAME=${REPOSITORY#*/}
Expand Down Expand Up @@ -240,6 +238,9 @@ jobs:
exit 1
env:
IMAGE_TAG: ${{ github.sha }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.GH_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.GH_AWS_SECRET_ACCESS_KEY }}
DO_AUTH_TOKEN: ${{ secrets.DO_AUTH_TOKEN }}
K8S_CLUSTER_ID: ${{ secrets.K8S_CLUSTER_ID }}
REPOSITORY: ${{ github.repository }}
Expand Down

0 comments on commit 4babe24

Please sign in to comment.