~sbaildon/lidarr

878064059f3606f001e792d87fb217294814fb29 — Sean Baildon 6 months ago 81cdac9 main
arm and amd builds
2 files changed, 16 insertions(+), 5 deletions(-)

M .builds/container.yml
M Containerfile
M .builds/container.yml => .builds/container.yml +9 -4
@@ 21,8 21,13 @@ tasks:
        --annotation org.opencontainers.image.revision=${PROJECT_REVISION} \
        --annotation org.opencontainers.image.created=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
        --annotation org.opencontainers.image.source=https://git.sr.ht/~sbaildon/lidarr \
        --jobs=1 \
        --jobs=2 \
        --manifest ${registry}/${gh_user}/${project}:${PROJECT_REVISION} \
        --platform=linux/amd64 .
  - exit: |
      exit 1
        --platform=linux/amd64,linux/arm64 .
  - push: |
      cat ~/.github_pat | buildah login -u sbaildon --password-stdin ghcr.io
      buildah manifest \
        push \
        --all \
        ${registry}/${gh_user}/${project}:${PROJECT_REVISION} \
        docker://${registry}/${gh_user}/${project}:${PROJECT_REVISION}

M Containerfile => Containerfile +7 -1
@@ 1,7 1,13 @@
FROM alpine:3

ARG VERSION="1.0.1.2578"
ARG BRANCH="develop"

ARG TARGETARCH

RUN apk add --no-cache libintl sqlite-libs icu-libs chromaprint curl
RUN mkdir -p /lidarr/bin
RUN curl --silent --show-error --fail --location "https://lidarr.servarr.com/v1/update/master/updatefile?version=${VERSION}&os=linuxmusl&runtime=netcore&arch=arm64" \
RUN curl --silent --show-error --fail --location "https://lidarr.servarr.com/v1/update/${BRANCH}/updatefile?version=${VERSION}&os=linuxmusl&runtime=netcore&arch=$(echo ${TARGETARCH} | sed 's/amd/x/')" \
        | tar xzf - -C "/lidarr/bin" --strip-components=1 \
        && rm -rf "/lidarr/bin/Lidarr.Update" \
        && chmod -R u=rwX,go=rX "/lidarr"