Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote image for release branch #26

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
Loading