[Buildkite] Utilise annotations for build notifications (#700)
* [Buildkite] Utilise annotations for artifact and doc bypass notifications * [Buildkite] Add context to annotations * [Buildkite] Adjust docs annotation to display for PRspull/703/head
parent
7d7ad9bd28
commit
8b80be4061
|
@ -0,0 +1,24 @@
|
||||||
|
<h4>Artifacts</h4>
|
||||||
|
<dl class="flex flex-wrap mxn1">
|
||||||
|
<div class="m1">
|
||||||
|
<dt>amd64</dt>
|
||||||
|
<dd>
|
||||||
|
<a href="artifact://authelia-linux-amd64.tar.gz">authelia-linux-amd64.tar.gz</a><br>
|
||||||
|
<a href="artifact://authelia-linux-amd64.tar.gz.sha256">authelia-linux-amd64.tar.gz.sha256</a>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div class="m1">
|
||||||
|
<dt>arm32v7</dt>
|
||||||
|
<dd>
|
||||||
|
<a href="artifact://authelia-linux-arm32v7.tar.gz">authelia-linux-arm32v7.tar.gz</a><br>
|
||||||
|
<a href="artifact://authelia-linux-arm32v7.tar.gz.sha256">authelia-linux-arm32v7.tar.gz.sha256</a>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div class="m1">
|
||||||
|
<dt>arm64v8</dt>
|
||||||
|
<dd>
|
||||||
|
<a href="artifact://authelia-linux-arm64v8.tar.gz">authelia-linux-arm64v8.tar.gz</a><br>
|
||||||
|
<a href="artifact://authelia-linux-arm64v8.tar.gz.sha256">authelia-linux-arm64v8.tar.gz.sha256</a>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
</dl>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<h4>Documentation Build</h4>
|
||||||
|
<dl class="flex flex-wrap mxn1">
|
||||||
|
<div class="m1">
|
||||||
|
<dd>
|
||||||
|
CI/CD steps have been skipped as this build only affects documentation.
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
</dl>
|
|
@ -10,6 +10,10 @@ if [[ $BUILDKITE_LABEL =~ ":selenium:" ]] || [[ $BUILDKITE_LABEL =~ ":docker: Bu
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $BUILDKITE_LABEL == ":docker: Image Deployments" ]]; then
|
||||||
|
cat .buildkite/annotations/artifacts | buildkite-agent annotate --style "success" --context "ctx-success"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $BUILDKITE_LABEL =~ ":docker: Deploy" ]]; then
|
if [[ $BUILDKITE_LABEL =~ ":docker: Deploy" ]]; then
|
||||||
docker logout
|
docker logout
|
||||||
fi
|
fi
|
||||||
|
@ -32,4 +36,4 @@ if [[ $BUILDKITE_LABEL == ":docker: Deploy Manifests" ]] && [[ $BUILDKITE_BRANCH
|
||||||
echo "Removing tag ${PR_TAG}"
|
echo "Removing tag ${PR_TAG}"
|
||||||
curl -fsL --retry 3 -o /dev/null -X "DELETE" -H "Authorization: JWT ${authtoken}" https://hub.docker.com/v2/repositories/authelia/authelia/tags/${PR_TAG}/
|
curl -fsL --retry 3 -o /dev/null -X "DELETE" -H "Authorization: JWT ${authtoken}" https://hub.docker.com/v2/repositories/authelia/authelia/tags/${PR_TAG}/
|
||||||
done
|
done
|
||||||
fi
|
fi
|
|
@ -7,6 +7,10 @@ else
|
||||||
CI_DOCS_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^docs\/.*/!{q1}' && echo true || echo false)
|
CI_DOCS_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^docs\/.*/!{q1}' && echo true || echo false)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $CI_DOCS_BYPASS == "true" ]]; then
|
||||||
|
cat .buildkite/annotations/documentation | buildkite-agent annotate --style "info" --context "ctx-info"
|
||||||
|
fi
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
env:
|
env:
|
||||||
CI_DOCS_BYPASS: ${CI_DOCS_BYPASS}
|
CI_DOCS_BYPASS: ${CI_DOCS_BYPASS}
|
||||||
|
|
Loading…
Reference in New Issue