[DEPRECATE] Remove OSX (darwin) based binaries (#967)

pull/969/head
Amir Zarrinkafsh 2020-05-03 22:03:53 +10:00 committed by GitHub
parent e5ccdb4449
commit 9e2a9f5ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 34 deletions

View File

@ -21,13 +21,6 @@
<a href="artifact://authelia-linux-arm64v8.tar.gz.sha256">authelia-linux-arm64v8.tar.gz.sha256</a> <a href="artifact://authelia-linux-arm64v8.tar.gz.sha256">authelia-linux-arm64v8.tar.gz.sha256</a>
</dd> </dd>
</div> </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"> <div class="m1">
<dt>public_html</dt> <dt>public_html</dt>
<dd> <dd>

View File

@ -38,7 +38,6 @@ steps:
- label: ":github: Deploy Artifacts" - label: ":github: Deploy Artifacts"
command: "ghartifacts.sh" command: "ghartifacts.sh"
depends_on: depends_on:
- "build-docker-darwin-amd64"
- "build-docker-linux-amd64" - "build-docker-linux-amd64"
- "build-docker-linux-arm32v7" - "build-docker-linux-arm32v7"
- "build-docker-linux-arm64v8" - "build-docker-linux-arm64v8"

View File

@ -15,14 +15,8 @@ if [[ $BUILDKITE_LABEL =~ ":docker: Build Image" ]]; then
docker create --name authelia-binary ${DOCKER_IMAGE}:latest docker create --name authelia-binary ${DOCKER_IMAGE}:latest
docker cp authelia-binary:/usr/app/authelia ./authelia-"${OS}"-"${ARCH}" docker cp authelia-binary:/usr/app/authelia ./authelia-"${OS}"-"${ARCH}"
docker rm -f authelia-binary docker rm -f authelia-binary
if [[ $OS == "linux" ]]; then
tar -czf authelia-"${OS}"-"${ARCH}".tar.gz authelia-"${OS}"-"${ARCH}" authelia.service config.template.yml 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 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 # Saving image for push to docker hub
if [[ $BUILDKITE_LABEL != ":docker: Build Image [darwin]" ]]; then
docker save ${DOCKER_IMAGE} | zstdmt -T0 -12 > authelia-image-"${ARCH}".tar.zst docker save ${DOCKER_IMAGE} | zstdmt -T0 -12 > authelia-image-"${ARCH}".tar.zst
fi
fi fi

View File

@ -1,32 +1,17 @@
#!/bin/bash #!/bin/bash
set -eu 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_OS in "${!BUILDS[@]}"; do
for BUILD_ARCH in ${BUILDS[$BUILD_OS]}; 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 cat << EOF
- label: ":docker: Build Image [${BUILD_ARCH}]" - label: ":docker: Build Image [${BUILD_ARCH}]"
command: "authelia-scripts docker build --arch=${BUILD_ARCH}" command: "authelia-scripts docker build --arch=${BUILD_ARCH}"
EOF
fi
cat << EOF
agents: agents:
build: "${BUILD_OS}-${BUILD_ARCH}" build: "${BUILD_OS}-${BUILD_ARCH}"
artifact_paths: artifact_paths:
EOF
if [[ "${BUILD_OS}" == "linux" ]]; then
cat << EOF
- "authelia-image-${BUILD_ARCH}.tar.zst" - "authelia-image-${BUILD_ARCH}.tar.zst"
EOF
fi
cat << EOF
- "authelia-${BUILD_OS}-${BUILD_ARCH}.tar.gz" - "authelia-${BUILD_OS}-${BUILD_ARCH}.tar.gz"
- "authelia-${BUILD_OS}-${BUILD_ARCH}.tar.gz.sha256" - "authelia-${BUILD_OS}-${BUILD_ARCH}.tar.gz.sha256"
env: env:

View File

@ -7,7 +7,6 @@ for FILES in \
authelia-linux-amd64.tar.gz authelia-linux-amd64.tar.gz.sha256 \ authelia-linux-amd64.tar.gz authelia-linux-amd64.tar.gz.sha256 \
authelia-linux-arm32v7.tar.gz authelia-linux-arm32v7.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-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; authelia-public_html.tar.gz authelia-public_html.tar.gz.sha256;
do do
artifacts+=(-a "${FILES}") artifacts+=(-a "${FILES}")