Skip to content

fix: 🐛 shell2http下载失败 #70

fix: 🐛 shell2http下载失败

fix: 🐛 shell2http下载失败 #70

Workflow file for this run

name: Build and Push Multi-Architecture Docker Images
on:
push:
branches:
- main
tags:
- '*'
paths-ignore:
- 'README.md'
- 'install.sh'
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
alist_tags: ${{ steps.vars.outputs.alist_tags }}
metadata_tags: ${{ steps.vars.outputs.metadata_tags }}
emby_tags: ${{ steps.vars.outputs.emby_tags }}
jellyfin_tags: ${{ steps.vars.outputs.jellyfin_tags }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Determine version and tags
id: vars
run: |
IMAGE_PREFIX="ghcr.io/${{ github.repository_owner }}"
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
echo "::set-output name=alist_tags::${IMAGE_PREFIX}/xiaoya-alist:latest,${IMAGE_PREFIX}/xiaoya-alist:${VERSION}"
echo "::set-output name=metadata_tags::${IMAGE_PREFIX}/xiaoya-metadata:latest,${IMAGE_PREFIX}/xiaoya-metadata:${VERSION}"
echo "::set-output name=emby_tags::${IMAGE_PREFIX}/xiaoya-emby:latest,${IMAGE_PREFIX}/xiaoya-emby:${VERSION}"
echo "::set-output name=jellyfin_tags::${IMAGE_PREFIX}/xiaoya-jellyfin:latest,${IMAGE_PREFIX}/xiaoya-jellyfin:${VERSION}"
else
LATEST_TAG=${GITHUB_REF#refs/heads/}
echo "::set-output name=alist_tags::${IMAGE_PREFIX}/xiaoya-alist:${LATEST_TAG}"
echo "::set-output name=metadata_tags::${IMAGE_PREFIX}/xiaoya-metadata:${LATEST_TAG}"
echo "::set-output name=emby_tags::${IMAGE_PREFIX}/xiaoya-emby:${LATEST_TAG}"
echo "::set-output name=jellyfin_tags::${IMAGE_PREFIX}/xiaoya-jellyfin:${LATEST_TAG}"
fi
build-alist:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push xiaoya-alist
uses: docker/build-push-action@v4
with:
context: ./alist
push: true
tags: ${{ needs.prepare.outputs.alist_tags }}
platforms: linux/amd64,linux/arm64
build-metadata:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push xiaoya-metadata
uses: docker/build-push-action@v4
with:
context: ./metadata
push: true
tags: ${{ needs.prepare.outputs.metadata_tags }}
platforms: linux/amd64,linux/arm64
build-emby:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push xiaoya-emby
uses: docker/build-push-action@v4
with:
context: ./emby
push: true
tags: ${{ needs.prepare.outputs.emby_tags }}
platforms: linux/amd64,linux/arm64
build-jellyfin:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push xiaoya-jellyfin
uses: docker/build-push-action@v4
with:
context: ./jellyfin
push: true
tags: ${{ needs.prepare.outputs.jellyfin_tags }}
platforms: linux/amd64,linux/arm64