Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d68562f25 | |||
| 88894c4098 | |||
| e598aac514 |
+11
-1
@@ -60,7 +60,17 @@ runs:
|
||||
run: |
|
||||
AUTOMATE_HOST=$(python -c 'from urllib.parse import urlparse; print(urlparse("${{ inputs.speckle_automate_url }}").netloc)')
|
||||
echo "Parsed automate host: ${AUTOMATE_HOST}"
|
||||
echo "automateHost=${AUTOMATE_HOST}"" >>"$GITHUB_ENV"
|
||||
echo "automateHost=${AUTOMATE_HOST}" >>"$GITHUB_ENV"
|
||||
- name: Ensure image doesn't exist in registry
|
||||
shell: bash
|
||||
run: |
|
||||
set +e
|
||||
docker manifest inspect ${{ env.automateHost }}/${{ inputs.speckle_function_id }}:${{ env.releaseTag }}
|
||||
if [[ $? == 0 ]]
|
||||
then
|
||||
echo "Cannot override the existing release tag ${{ env.releaseTag }}. Please publish a new release!"
|
||||
exit 1
|
||||
fi
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v4.1.1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user