-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jordan Hoeft
committed
Feb 28, 2024
1 parent
060c511
commit aa7f28a
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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] | ||
|
||
|