Skip to content

Commit

Permalink
Merge pull request #200 from engedaam/create-karpenter-snapshot-for-fork
Browse files Browse the repository at this point in the history
Forked snapshot
  • Loading branch information
engedaam authored Dec 7, 2023
2 parents fc4da24 + a327dcb commit e2c1b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
release:
permissions:
id-token: write # aws-actions/[email protected]
if: github.repository == 'aws/karpenter-provider-aws'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
8 changes: 4 additions & 4 deletions hack/release/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ set -euo pipefail

config(){
GITHUB_ACCOUNT="aws"
AWS_ACCOUNT_ID="071440425669"
AWS_ACCOUNT_ID="605559265918"
ECR_GALLERY_NAME="karpenter"
RELEASE_REPO_ECR=${RELEASE_REPO_ECR:-public.ecr.aws/${ECR_GALLERY_NAME}/}
RELEASE_REPO_GH=${RELEASE_REPO_GH:-ghcr.io/${GITHUB_ACCOUNT}/karpenter}

PRIVATE_HOST="${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com"
PRIVATE_HOST="${AWS_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com"
SNAPSHOT_REPO_ECR=${SNAPSHOT_REPO_ECR:-${PRIVATE_HOST}/karpenter/snapshot/}

CURRENT_MAJOR_VERSION="0"
Expand Down Expand Up @@ -61,11 +61,11 @@ Helm Chart Version $(helmChartVersion $RELEASE_VERSION)"
}

authenticate() {
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin "${RELEASE_REPO_ECR}"
aws ecr-public get-login-password --region us-west-2 | docker login --username AWS --password-stdin "${RELEASE_REPO_ECR}"
}

authenticatePrivateRepo() {
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${PRIVATE_HOST}
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin ${PRIVATE_HOST}
}

buildImages() {
Expand Down

0 comments on commit e2c1b2b

Please sign in to comment.