Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 27 additions & 24 deletions .github/workflows/base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,79 +172,82 @@ jobs:
REPO=${{ needs.prepare.outputs.repo_name }}
BRANCH_TAG=${{ needs.prepare.outputs.branch_tag }}
TIMESTAMP=${{ needs.prepare.outputs.timestamp }}
ACTOR=${{ github.actor }}
REPO_URL="https://github.com/${{ github.repository }}"
SHA=${{ github.sha }}

echo "Creating multi-arch manifest for ${OWNER}/${REPO}"

# GitHub Container Registry manifests
# branch tag (e.g. base or base-dev)
docker buildx imagetools create \
--annotation "org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "org.opencontainers.image.title=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.url=${REPO_URL}" \
--annotation "org.opencontainers.image.source=${REPO_URL}" \
--annotation "org.opencontainers.image.version=${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "org.opencontainers.image.revision=${SHA}" \
--annotation "org.opencontainers.image.licenses=See repository" \
--annotation "org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "org.opencontainers.image.vendor=${OWNER}" \
--annotation "org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "maintainer=${{ github.actor }}" \
--annotation "org.opencontainers.image.authors=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=DispatcharrBase version: ${BRANCH_TAG}-${TIMESTAMP}" \
--tag ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG} \
ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG}-amd64 ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG}-arm64

# branch + timestamp tag
docker buildx imagetools create \
--annotation "org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "org.opencontainers.image.title=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.url=${REPO_URL}" \
--annotation "org.opencontainers.image.source=${REPO_URL}" \
--annotation "org.opencontainers.image.version=${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "org.opencontainers.image.revision=${SHA}" \
--annotation "org.opencontainers.image.licenses=See repository" \
--annotation "org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "org.opencontainers.image.vendor=${OWNER}" \
--annotation "org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "maintainer=${{ github.actor }}" \
--annotation "org.opencontainers.image.authors=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=DispatcharrBase version: ${BRANCH_TAG}-${TIMESTAMP}" \
--tag ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG}-${TIMESTAMP} \
ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG}-${TIMESTAMP}-amd64 ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG}-${TIMESTAMP}-arm64

# Docker Hub manifests
# branch tag (e.g. base or base-dev)
docker buildx imagetools create \
--annotation "org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "org.opencontainers.image.title=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.url=${REPO_URL}" \
--annotation "org.opencontainers.image.source=${REPO_URL}" \
--annotation "org.opencontainers.image.version=${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "org.opencontainers.image.revision=${SHA}" \
--annotation "org.opencontainers.image.licenses=See repository" \
--annotation "org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "org.opencontainers.image.vendor=${OWNER}" \
--annotation "org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "maintainer=${{ github.actor }}" \
--annotation "org.opencontainers.image.authors=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=DispatcharrBase version: ${BRANCH_TAG}-${TIMESTAMP}" \
--tag docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG} \
docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG}-amd64 docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG}-arm64

# branch + timestamp tag
docker buildx imagetools create \
--annotation "org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "org.opencontainers.image.title=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.url=${REPO_URL}" \
--annotation "org.opencontainers.image.source=${REPO_URL}" \
--annotation "org.opencontainers.image.version=${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "org.opencontainers.image.revision=${SHA}" \
--annotation "org.opencontainers.image.licenses=See repository" \
--annotation "org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "org.opencontainers.image.vendor=${OWNER}" \
--annotation "org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "maintainer=${{ github.actor }}" \
--annotation "org.opencontainers.image.authors=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=DispatcharrBase version: ${BRANCH_TAG}-${TIMESTAMP}" \
--tag docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG}-${TIMESTAMP} \
docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG}-${TIMESTAMP}-amd64 docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG}-${TIMESTAMP}-arm64
51 changes: 27 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,76 +198,79 @@ jobs:
BRANCH_TAG=${{ needs.prepare.outputs.branch_tag }}
VERSION=${{ needs.prepare.outputs.version }}
TIMESTAMP=${{ needs.prepare.outputs.timestamp }}
ACTOR=${{ github.actor }}
REPO_URL="https://github.com/${{ github.repository }}"
SHA=${{ github.sha }}

echo "Creating multi-arch manifest for ${OWNER}/${REPO}"

# branch tag (e.g. latest or dev)
docker buildx imagetools create \
--annotation "org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "org.opencontainers.image.title=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.url=${REPO_URL}" \
--annotation "org.opencontainers.image.source=${REPO_URL}" \
--annotation "org.opencontainers.image.version=${BRANCH_TAG}" \
--annotation "org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "org.opencontainers.image.revision=${SHA}" \
--annotation "org.opencontainers.image.licenses=See repository" \
--annotation "org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "org.opencontainers.image.vendor=${OWNER}" \
--annotation "org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "maintainer=${{ github.actor }}" \
--annotation "org.opencontainers.image.authors=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=Dispatcharr version: ${VERSION}-${TIMESTAMP}" \
--tag ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG} \
ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG}-amd64 ghcr.io/${OWNER}/${REPO}:${BRANCH_TAG}-arm64

# version + timestamp tag
docker buildx imagetools create \
--annotation "org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "org.opencontainers.image.title=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.url=${REPO_URL}" \
--annotation "org.opencontainers.image.source=${REPO_URL}" \
--annotation "org.opencontainers.image.version=${VERSION}-${TIMESTAMP}" \
--annotation "org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "org.opencontainers.image.revision=${SHA}" \
--annotation "org.opencontainers.image.licenses=See repository" \
--annotation "org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "org.opencontainers.image.vendor=${OWNER}" \
--annotation "org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "maintainer=${{ github.actor }}" \
--annotation "org.opencontainers.image.authors=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=Dispatcharr version: ${VERSION}-${TIMESTAMP}" \
--tag ghcr.io/${OWNER}/${REPO}:${VERSION}-${TIMESTAMP} \
ghcr.io/${OWNER}/${REPO}:${VERSION}-${TIMESTAMP}-amd64 ghcr.io/${OWNER}/${REPO}:${VERSION}-${TIMESTAMP}-arm64

# also create Docker Hub manifests using the same username
docker buildx imagetools create \
--annotation "org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "org.opencontainers.image.title=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.url=${REPO_URL}" \
--annotation "org.opencontainers.image.source=${REPO_URL}" \
--annotation "org.opencontainers.image.version=${BRANCH_TAG}" \
--annotation "org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "org.opencontainers.image.revision=${SHA}" \
--annotation "org.opencontainers.image.licenses=See repository" \
--annotation "org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "org.opencontainers.image.vendor=${OWNER}" \
--annotation "org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "maintainer=${{ github.actor }}" \
--annotation "org.opencontainers.image.authors=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=Dispatcharr version: ${VERSION}-${TIMESTAMP}" \
--tag docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG} \
docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG}-amd64 docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${BRANCH_TAG}-arm64

docker buildx imagetools create \
--annotation "org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "org.opencontainers.image.title=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "org.opencontainers.image.url=${REPO_URL}" \
--annotation "org.opencontainers.image.source=${REPO_URL}" \
--annotation "org.opencontainers.image.version=${VERSION}-${TIMESTAMP}" \
--annotation "org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "org.opencontainers.image.revision=${SHA}" \
--annotation "org.opencontainers.image.licenses=See repository" \
--annotation "org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "org.opencontainers.image.vendor=${OWNER}" \
--annotation "org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "maintainer=${{ github.actor }}" \
--annotation "org.opencontainers.image.authors=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=Dispatcharr version: ${VERSION}-${TIMESTAMP}" \
--tag docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${VERSION}-${TIMESTAMP} \
docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${VERSION}-${TIMESTAMP}-amd64 docker.io/${{ secrets.DOCKERHUB_ORGANIZATION }}/${REPO}:${VERSION}-${TIMESTAMP}-arm64
Loading
Loading