Exit workflow if it fails
This commit is contained in:
parent
dc0b5a2f24
commit
4eaa72526c
@ -51,7 +51,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -51,7 +51,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -51,7 +51,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -53,7 +53,7 @@ jobs:
|
||||
-f ./Dockerfile.arm64 \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
||||
-f ./Dockerfile.arm64 \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -55,7 +55,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
@ -122,7 +122,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -51,7 +51,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
||||
-f ./Dockerfile \
|
||||
--push . && \
|
||||
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
|
||||
docker-buildx rm buildx
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user