Skip to content

构建IYUUPlus镜像 #77

构建IYUUPlus镜像

构建IYUUPlus镜像 #77

Workflow file for this run

name: 构建IYUUPlus镜像
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * 5"
jobs:
build:
runs-on: ubuntu-latest
name: 构建iyuuplus-dev
env:
IMAGE_NAME: iyuuplus-dev
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set Up QEMU
uses: docker/setup-qemu-action@v3
- name: Set Up Buildx
uses: docker/setup-buildx-action@v3
- name: Login DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set Up Cache
uses: actions/cache@v2
id: buildx-cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx
- name: Buildx
uses: docker/build-push-action@v5
with:
context: ./docker
file: docker/Dockerfile
platforms: linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:latest
- name: Update DockerHub Description
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
with:
destination_container_repo: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
provider: dockerhub
readme_file: ./README.md