mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
8c79e6beca
Instead of generating our changelog based on crude modifications utilising git log we now utilise conventional-changelog. conventional-changelog utilises the angular commit structure to categorise and display the changelog for 3 types (fix,feat,perf) and each of the change scopes are identified in the changelog too. An example of the output for v4.26.0 can be found below: # [4.26.0](https://github.com/authelia/authelia/compare/v4.25.2...v4.26.0) (2021-02-02) ### Bug Fixes * **handlers:** refresh user details on all domains ([#1642](https://github.com/authelia/authelia/issues/1642)) ([60ff16b
](60ff16b518
)) ### Docker Container * `docker pull authelia/authelia:4.26.0`
64 lines
1.8 KiB
Bash
Executable File
64 lines
1.8 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -u
|
|
|
|
DIVERGED=$(git merge-base --fork-point origin/master > /dev/null; echo $?)
|
|
|
|
if [[ $DIVERGED == 0 ]]; then
|
|
if [[ $BUILDKITE_TAG == "" ]]; then
|
|
if [[ $BUILDKITE_BRANCH == "master" ]]; then
|
|
CI_BYPASS=$(git diff --name-only HEAD~1 | sed -rn '/^(CONTRIBUTING.md|README.md|SECURITY.md|\.all-contributorsrc|docs\/.*)/!{q1}' && echo true || echo false)
|
|
else
|
|
CI_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^(CONTRIBUTING.md|README.md|SECURITY.md|\.all-contributorsrc|docs\/.*)/!{q1}' && echo true || echo false)
|
|
fi
|
|
else
|
|
CI_BYPASS="false"
|
|
fi
|
|
else
|
|
CI_BYPASS="false"
|
|
fi
|
|
|
|
cat << EOF
|
|
env:
|
|
CI_BYPASS: ${CI_BYPASS}
|
|
|
|
steps:
|
|
- label: ":docker: Image Deployments"
|
|
command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload"
|
|
if: build.env("CI_BYPASS") != "true"
|
|
|
|
- wait:
|
|
if: build.env("CI_BYPASS") != "true"
|
|
|
|
- label: ":docker: Deploy Manifests"
|
|
command: "authelia-scripts docker push-manifest"
|
|
env:
|
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
|
agents:
|
|
upload: "fast"
|
|
if: build.env("CI_BYPASS") != "true"
|
|
|
|
- label: ":github: Deploy Artifacts"
|
|
command: "ghartifacts.sh"
|
|
depends_on:
|
|
- "build-docker-linux-amd64"
|
|
- "build-docker-linux-arm32v7"
|
|
- "build-docker-linux-arm64v8"
|
|
retry:
|
|
automatic: true
|
|
agents:
|
|
upload: "fast"
|
|
key: "artifacts"
|
|
if: build.tag != null
|
|
|
|
- label: ":linux: Deploy AUR"
|
|
command: ".buildkite/steps/aurpackages.sh | buildkite-agent pipeline upload"
|
|
depends_on: ~
|
|
if: build.tag != null || build.branch == "master" && build.env("CI_BYPASS") != "true"
|
|
|
|
- label: ":book: Deploy Documentation"
|
|
command: "syncdoc.sh"
|
|
depends_on: ~
|
|
agents:
|
|
upload: "fast"
|
|
if: build.branch == "master"
|
|
EOF |