[DEPRECATE] Remove OSX (darwin) based binaries (#967)
parent
e5ccdb4449
commit
9e2a9f5ee6
|
@ -21,13 +21,6 @@
|
|||
<a href="artifact://authelia-linux-arm64v8.tar.gz.sha256">authelia-linux-arm64v8.tar.gz.sha256</a>
|
||||
</dd>
|
||||
</div>
|
||||
<div class="m1">
|
||||
<dt>darwin</dt>
|
||||
<dd>
|
||||
<a href="artifact://authelia-darwin-amd64.tar.gz">authelia-darwin-amd64.tar.gz</a><br>
|
||||
<a href="artifact://authelia-darwin-amd64.tar.gz.sha256">authelia-darwin-amd64.tar.gz.sha256</a>
|
||||
</dd>
|
||||
</div>
|
||||
<div class="m1">
|
||||
<dt>public_html</dt>
|
||||
<dd>
|
||||
|
|
|
@ -38,7 +38,6 @@ steps:
|
|||
- label: ":github: Deploy Artifacts"
|
||||
command: "ghartifacts.sh"
|
||||
depends_on:
|
||||
- "build-docker-darwin-amd64"
|
||||
- "build-docker-linux-amd64"
|
||||
- "build-docker-linux-arm32v7"
|
||||
- "build-docker-linux-arm64v8"
|
||||
|
|
|
@ -15,14 +15,8 @@ if [[ $BUILDKITE_LABEL =~ ":docker: Build Image" ]]; then
|
|||
docker create --name authelia-binary ${DOCKER_IMAGE}:latest
|
||||
docker cp authelia-binary:/usr/app/authelia ./authelia-"${OS}"-"${ARCH}"
|
||||
docker rm -f authelia-binary
|
||||
if [[ $OS == "linux" ]]; then
|
||||
tar -czf authelia-"${OS}"-"${ARCH}".tar.gz authelia-"${OS}"-"${ARCH}" authelia.service config.template.yml
|
||||
else
|
||||
tar -czf authelia-"${OS}"-"${ARCH}".tar.gz authelia-"${OS}"-"${ARCH}" config.template.yml
|
||||
fi
|
||||
sha256sum authelia-"${OS}"-"${ARCH}".tar.gz > authelia-"${OS}"-"${ARCH}".tar.gz.sha256
|
||||
# Saving image for push to docker hub, darwin image is not required as OSX utilses linux manifests
|
||||
if [[ $BUILDKITE_LABEL != ":docker: Build Image [darwin]" ]]; then
|
||||
# Saving image for push to docker hub
|
||||
docker save ${DOCKER_IMAGE} | zstdmt -T0 -12 > authelia-image-"${ARCH}".tar.zst
|
||||
fi
|
||||
fi
|
|
@ -1,32 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
declare -A BUILDS=(["linux"]="amd64 arm32v7 arm64v8" ["darwin"]="amd64")
|
||||
declare -A BUILDS=(["linux"]="amd64 arm32v7 arm64v8")
|
||||
|
||||
for BUILD_OS in "${!BUILDS[@]}"; do
|
||||
for BUILD_ARCH in ${BUILDS[$BUILD_OS]}; do
|
||||
if [[ "${BUILD_OS}" == "darwin" ]]; then
|
||||
cat << EOF
|
||||
- label: ":docker: Build Image [${BUILD_OS}]"
|
||||
command: "authelia-scripts docker build --arch=${BUILD_OS}"
|
||||
EOF
|
||||
else
|
||||
cat << EOF
|
||||
- label: ":docker: Build Image [${BUILD_ARCH}]"
|
||||
command: "authelia-scripts docker build --arch=${BUILD_ARCH}"
|
||||
EOF
|
||||
fi
|
||||
cat << EOF
|
||||
agents:
|
||||
build: "${BUILD_OS}-${BUILD_ARCH}"
|
||||
artifact_paths:
|
||||
EOF
|
||||
if [[ "${BUILD_OS}" == "linux" ]]; then
|
||||
cat << EOF
|
||||
- "authelia-image-${BUILD_ARCH}.tar.zst"
|
||||
EOF
|
||||
fi
|
||||
cat << EOF
|
||||
- "authelia-${BUILD_OS}-${BUILD_ARCH}.tar.gz"
|
||||
- "authelia-${BUILD_OS}-${BUILD_ARCH}.tar.gz.sha256"
|
||||
env:
|
||||
|
|
|
@ -7,7 +7,6 @@ for FILES in \
|
|||
authelia-linux-amd64.tar.gz authelia-linux-amd64.tar.gz.sha256 \
|
||||
authelia-linux-arm32v7.tar.gz authelia-linux-arm32v7.tar.gz.sha256 \
|
||||
authelia-linux-arm64v8.tar.gz authelia-linux-arm64v8.tar.gz.sha256 \
|
||||
authelia-darwin-amd64.tar.gz authelia-darwin-amd64.tar.gz.sha256 \
|
||||
authelia-public_html.tar.gz authelia-public_html.tar.gz.sha256;
|
||||
do
|
||||
artifacts+=(-a "${FILES}")
|
||||
|
|
Loading…
Reference in New Issue