Exit workflow if it fails
This commit is contained in:
parent
dc0b5a2f24
commit
4eaa72526c
@ -51,7 +51,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -51,7 +51,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -51,7 +51,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -53,7 +53,7 @@ jobs:
|
|||||||
-f ./Dockerfile.arm64 \
|
-f ./Dockerfile.arm64 \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
-f ./Dockerfile.arm64 \
|
-f ./Dockerfile.arm64 \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
@ -122,7 +122,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -51,7 +51,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
|||||||
-f ./Dockerfile \
|
-f ./Dockerfile \
|
||||||
--push . && \
|
--push . && \
|
||||||
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
curl -H prio:low -d "Built and pushed ${REPO_NAME}" https://ntfy.opnxng.com/build || \
|
||||||
curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build;
|
{ curl -H tags:warning -H prio:high -d "Built and pushed ${REPO_NAME} failed!" https://ntfy.opnxng.com/build ; exit 1; }
|
||||||
# Remove Docker Buildx builder
|
# Remove Docker Buildx builder
|
||||||
docker-buildx rm buildx
|
docker-buildx rm buildx
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user