Skip to content

Commit

Permalink
Copy image once at end of E2E (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlakhaws authored Nov 15, 2023
1 parent 5e8c798 commit d108de2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up crane
uses: imjasonh/[email protected]
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@master
with:
Expand Down Expand Up @@ -115,10 +117,10 @@ jobs:
export ARCH=${{ matrix.arch }}
tests/e2e-kubernetes/run.sh
- name: Promote image for release branch
if: ${{ startsWith(github.ref_name, 'release') && matrix.cluster-type == 'eksctl' }}
if: ${{ startsWith(github.ref_name, 'release') && matrix.cluster-type == 'kops' && matrix.arch == 'x86' }}
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
run: |
export TMP_IMAGE_NAME=${REGISTRY}/${{ env.TMP_IMAGE_NAME }}:${{ env.COMMIT_ID }}
export NEW_IMAGE_NAME=${REGISTRY}/${{ env.PROMOTED_IMAGE_NAME }}:${{ env.COMMIT_ID }}
docker tag ${REGISTRY}/${{ env.TMP_IMAGE_NAME }}:${{ env.COMMIT_ID }} ${NEW_IMAGE_NAME}
docker push ${NEW_IMAGE_NAME}
crane copy ${TMP_IMAGE_NAME} ${NEW_IMAGE_NAME}

0 comments on commit d108de2

Please sign in to comment.