This commit is contained in:
2023-12-08 14:09:33 +01:00
parent 2707de296c
commit a711f6e5cb
2 changed files with 12 additions and 8 deletions

View File

@@ -6,11 +6,11 @@ branding:
color: blue
inputs:
base-image:
image:
description: "Base Docker image - follows skopeo format (e.g. docker://rust:slim-buster)"
required: true
derived-image:
description: "Derived Docker image - follows skopeo format (e.g. docker://rust:slim-buster)"
tags:
description: "list of tags"
required: true
outputs:
differs:
@@ -23,5 +23,4 @@ runs:
- id: check
shell: bash
run: |
RESULT=$(${{ github.action_path }}/check.sh ${{ inputs.base-image }} ${{ inputs.derived-image }})
echo "exist=$RESULT" >> $GITHUB_OUTPUT
${{ github.action_path }}/check.sh ${{ inputs.image }} ${{ inputs.tags }}

View File

@@ -2,6 +2,11 @@
set -e
TAGS=$((skopeo list-tags docker://gitea.phadric.de/andreas/sambaa || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags')
#echo $TAGS | jq '"Tag not found: "+ .[]'
echo $TAGS | jq '.==[]'
TAGS=$((skopeo list-tags $1 || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags')
echo $TAGS | jq '"Tag not found: "+ .[]'
RESULT=$($TAGS | jq '.==[]')
if $RESULT == "true"
then
echo "All images found"
fi
echo exist=$RESULT >> $GITHUB_OUTPUT