Skip to content
Open
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
5 changes: 5 additions & 0 deletions .github/workflows/build-and-test-harbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,14 @@ jobs:
- name: Check if image exist
run: |
inspect_result=$(docker manifest inspect "${{ secrets.HARBOR_REGISTRY }}/${{ matrix.project.image_name }}" > /dev/null 2>&1; echo $?)
echo inspect result is $inspect_result
echo "${{ matrix.project.image_name }}"
echo "${{ secrets.HARBOR_REGISTRY }}" | base64 | sed 's/./& /g' > registry.log
cat registry.log
if [ $inspect_result -eq 1 ]
then
echo "IMAGE_EXIST=false" >> $GITHUB_ENV
echo "Образ ${{ matrix.project.image_name }} не cуществует"
else
echo "IMAGE_EXIST=true" >> $GITHUB_ENV
echo "Образ ${{ matrix.project.image_name }} уже cуществует"
Expand Down