mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[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 PRs
This commit is contained in:
parent
7d7ad9bd28
commit
8b80be4061
24
.buildkite/annotations/artifacts
Normal file
24
.buildkite/annotations/artifacts
Normal file
|
@ -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>
|
8
.buildkite/annotations/documentation
Normal file
8
.buildkite/annotations/documentation
Normal file
|
@ -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
|
||||
|
||||
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
|
||||
docker logout
|
||||
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)
|
||||
fi
|
||||
|
||||
if [[ $CI_DOCS_BYPASS == "true" ]]; then
|
||||
cat .buildkite/annotations/documentation | buildkite-agent annotate --style "info" --context "ctx-info"
|
||||
fi
|
||||
|
||||
cat << EOF
|
||||
env:
|
||||
CI_DOCS_BYPASS: ${CI_DOCS_BYPASS}
|
||||
|
|
Loading…
Reference in New Issue
Block a user