Skip to content

Commit 3f1ae99

Browse files
authored
Update java-cicd.yml
1 parent 6da3283 commit 3f1ae99

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/java-cicd.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,15 @@ jobs:
130130
git push origin ${{ github.ref_name }} --force
131131
- name: Check health of google.com
132132
id: health
133-
run: |
134-
status=$(curl -s -o /dev/null -w "%{http_code}" https://www.google.com)
135-
echo "HTTP status: $status"
136-
echo "status=$status" >> $GITHUB_OUTPUT
133+
run: |
134+
sleep 60
135+
status=$(curl -s -o /dev/null -w "%{http_code}" https://www.google.com)
136+
echo "HTTP status: $status"
137+
echo "status=$status" >> $GITHUB_OUTPUT
137138
- name: Extract previous image from git diff
138139
id: image_diff
139140
run: |
140-
git fetch origin main
141+
git fetch origin ${{ github.ref_name }}
141142
# Show diff against last committed state
142143
OLD_IMAGE=$(git diff origin/main -- deployment.yml | grep '^-' | grep 'image:' | awk '{print $2}')
143144
echo "Old image was: $OLD_IMAGE"

0 commit comments

Comments
 (0)