Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hoeft committed Feb 28, 2024
1 parent 060c511 commit aa7f28a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,17 @@ jobs:
run: |
APP_VERSION=$(grep 'appVersion:' charts/tsm-node/Chart.yaml | awk '{print $2}')
echo "IMAGE_TAG=$APP_VERSION" >> $GITHUB_ENV
AUDIT_APP_VERSION=$(grep 'appVersion:' charts/tsm-audit-server/Chart.yaml | awk '{print $2}')
echo "AUDIT_IMAGE_TAG=$AUDIT_APP_VERSION" >> $GITHUB_ENV
- name: Pull image from ECR
- name: Pull images from ECR
run: |
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $ECR_REPO
IMAGE_TAG=$(echo ${{ env.IMAGE_TAG }} | tr -d '\r')
docker pull $ECR_REPO:$IMAGE_TAG
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $AUDIT_ECR_REPO
AUDIT_IMAGE_TAG=$(echo ${{ env.AUDIT_IMAGE_TAG }} | tr -d '\r')
docker pull $AUDIT_ECR_REPO:$AUDIT_IMAGE_TAG
- name: Create kind ${{ matrix.k8s }} cluster
uses: helm/[email protected]
Expand All @@ -136,13 +141,20 @@ jobs:
- name: Load image into kind cluster
run: |
IMAGE_TAG=$(echo ${{ env.IMAGE_TAG }} | tr -d '\r')
AUDIT_IMAGE_TAG=$(echo ${{ env.AUDIT_IMAGE_TAG }} | tr -d '\r')
kind load docker-image $ECR_REPO:$IMAGE_TAG -n chart-testing
kind load docker-image $AUDIT_ECR_REPO:$AUDIT_IMAGE_TAG -n chart-testing
- name: Inject ECR Repo and Image Tag into Values Files
run: |
IMAGE_TAG=$(echo ${{ env.IMAGE_TAG }} | tr -d '\r')
./.github/inject-sensitive-values.sh charts/tsm-node/ci $ECR_REPO $IMAGE_TAG ${{ secrets.PRIVATE_KEY }}
- name: Inject ECR Repo and Image Tag into Audit Values Files
run: |
IMAGE_TAG=$(echo ${{ env.IMAGE_TAG }} | tr -d '\r')
./.github/inject-sensitive-values.sh charts/tsm-audit-server/ci $AUDIT_ECR_REPO $AUDIT_IMAGE_TAG ${{ secrets.PRIVATE_KEY }}
- name: Install chart-testing
uses: helm/[email protected]

Expand Down

0 comments on commit aa7f28a

Please sign in to comment.