mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-29 02:56:08 +08:00
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
name: Build QL BASE
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '00 18 * * *' # GMT 14:00 => 北京时间 2:00
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
packages: write
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14'
|
|
|
|
- name: Set time zone
|
|
uses: szenius/set-timezone@v1.0
|
|
with:
|
|
timezoneLinux: "Asia/Shanghai"
|
|
timezoneMacos: "Asia/Shanghai"
|
|
timezoneWindows: "China Standard Time"
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Login to GHCR
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Build and push
|
|
id: docker_build
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
build-args: |
|
|
MAINTAINER=${{ github.repository_owner }}
|
|
QL_BRANCH=${{ github.ref_name }}
|
|
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
|
|
context: docker/base/
|
|
push: true
|
|
tags: whyour/ql:base
|