Skip to content

Commit

Permalink
Promote image for release branch (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladislav Volodkin <[email protected]>
  • Loading branch information
vladem and Vladislav Volodkin authored Oct 31, 2023
1 parent 866e0fe commit 5993c6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: E2E Tests

on:
push:
branches: [ "main" ]
branches: [ "main", "release-**" ]
pull_request:
branches: [ "main" ]

Expand Down Expand Up @@ -72,11 +72,11 @@ jobs:
tests/e2e-kubernetes/install.sh
- name: Run E2E Tests
run: make e2e E2E_KUBECONFIG=${{ env.KUBECONFIG }} E2E_COMMIT_ID=${{ env.COMMIT_ID }}
- name: Promote image
if: ${{ github.ref_name == 'main' }}
- name: Promote image for release branch
if: ${{ startsWith(github.ref_name, 'release') }}
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
run: |
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}
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}

0 comments on commit 5993c6b

Please sign in to comment.