Skip to content

Commit

Permalink
Support multiple imageStreams (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored May 2, 2023
1 parent 2ae1cb8 commit c13ef63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ runs:
oc project ${{ inputs.oc_namespace }}
# Clean previous image, if any
IS=${{ steps.vars.outputs.imageStream }}
[ ! $(oc get is -o name | grep ^imagestream.image.openshift.io/${IS}$) ]|| oc delete is/${IS}
IS="${{ steps.vars.outputs.imageStream }}"
for i in "${IS}"
do
[ ! $(oc get is -o name | grep ^imagestream.image.openshift.io/${i}$) ]|| oc delete is/${i}
done
# Apply (overwrites) or create (does not overwrite) using processed template
TEMPLATE="$(oc process -f ${{ inputs.file }} ${{ inputs.parameters }} --local)"
Expand Down

0 comments on commit c13ef63

Please sign in to comment.