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
107 changes: 52 additions & 55 deletions .github/workflows/base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,82 +172,79 @@ 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=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--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=${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=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=DispatcharrBase version: ${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "index:org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "index:org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "index:org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "index:org.opencontainers.image.version=${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "index:org.opencontainers.image.licenses=See repository" \
--annotation "index:org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "index:org.opencontainers.image.vendor=${OWNER}" \
--annotation "index:org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "index:maintainer=${{ github.actor }}" \
--annotation "index: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=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--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=${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=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=DispatcharrBase version: ${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "index:org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "index:org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "index:org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "index:org.opencontainers.image.version=${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "index:org.opencontainers.image.licenses=See repository" \
--annotation "index:org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "index:org.opencontainers.image.vendor=${OWNER}" \
--annotation "index:org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "index:maintainer=${{ github.actor }}" \
--annotation "index: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=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--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=${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=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=DispatcharrBase version: ${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "index:org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "index:org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "index:org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "index:org.opencontainers.image.version=${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "index:org.opencontainers.image.licenses=See repository" \
--annotation "index:org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "index:org.opencontainers.image.vendor=${OWNER}" \
--annotation "index:org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "index:maintainer=${{ github.actor }}" \
--annotation "index: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=${REPO}" \
--annotation "org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--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=${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=${ACTOR}" \
--annotation "maintainer=${ACTOR}" \
--annotation "build_version=DispatcharrBase version: ${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.title=${{ needs.prepare.outputs.repo_name }}" \
--annotation "index:org.opencontainers.image.description=Your ultimate IPTV & stream Management companion." \
--annotation "index:org.opencontainers.image.url=https://github.com/${{ github.repository }}" \
--annotation "index:org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
--annotation "index:org.opencontainers.image.version=${BRANCH_TAG}-${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.created=${TIMESTAMP}" \
--annotation "index:org.opencontainers.image.revision=${{ github.sha }}" \
--annotation "index:org.opencontainers.image.licenses=See repository" \
--annotation "index:org.opencontainers.image.documentation=https://dispatcharr.github.io/Dispatcharr-Docs/" \
--annotation "index:org.opencontainers.image.vendor=${OWNER}" \
--annotation "index:org.opencontainers.image.authors=${{ github.actor }}" \
--annotation "index:maintainer=${{ github.actor }}" \
--annotation "index: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
Loading
Loading