Skip to content

Commit

Permalink
Merge branch 'refactor-global-constants' of github.com:hisarbalik/tel…
Browse files Browse the repository at this point in the history
…emetry-manager into refactor-global-constants
  • Loading branch information
hisarbalik committed Dec 13, 2024
2 parents 4fa89ef + cf970b8 commit 0a02df9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
if [[ $GITHUB_EVENT_NAME == 'push' ]]; then
echo 'TAGS=${{ github.ref_name }}' >> "$GITHUB_OUTPUT"
elif [[ $GITHUB_EVENT_NAME == 'merge_group' ]]; then
{
echo 'TAGS=${{ github.event.merge_group.head_sha }}' >> "$GITHUB_OUTPUT"
else
{
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-integration.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: PR Integration

env:
IMG: europe-docker.pkg.dev/kyma-project/dev/telemetry-manager:PR-${{ github.event.number }}
# add the tag PR-<number> to the image if it is a PR, if the trigger is merge_group, then add the sha as the tag
IMG: europe-docker.pkg.dev/kyma-project/dev/telemetry-manager:${{ github.event_name == 'pull_request' && 'PR-' || '' }}${{ github.event.number || github.event.merge_group.head_sha }}

on:
merge_group:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-lifecycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ jobs:
- name: Deploy with current version
shell: bash
run: |
IMG=europe-docker.pkg.dev/kyma-project/dev/telemetry-manager:PR-${{ github.event.number }} make deploy-dev
# add the tag PR-<number> to the image if it is a PR, if the trigger is merge_group, then add the sha as the tag
TAG="${{ github.event_name == 'pull_request' && 'PR-' || '' }}${{ github.event.number || github.event.merge_group.head_sha }}"
IMG=europe-docker.pkg.dev/kyma-project/dev/telemetry-manager:${TAG} make deploy-dev
- name: Wait for manager readiness
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion hack/await_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ START_TIME=$SECONDS

until $(skopeo list-tags ${PROTOCOL}${IMAGE_REPO} | jq '.Tags|any(. == env.TRIGGER)'); do
if (( SECONDS - START_TIME > TIMEOUT )); then
echo "Timeout reached: ${IMAGE_REPO}:${COMMIT_SHA} not found within $(( TIMEOUT/60 )) minutes"
echo "Timeout reached: ${IMAGE_REPO}:${TRIGGER} not found within $(( TIMEOUT/60 )) minutes"
exit 1
fi
echo "Waiting for binary image: ${IMAGE_REPO}:${TRIGGER}"
Expand Down

0 comments on commit 0a02df9

Please sign in to comment.