Daily Build Test #1857
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _ _ ____ ____ | |
# / \ _ __(_) __ _|___ \ | _ \ _ __ ___ | |
# / _ \ | '__| |/ _` | __) | | |_) | '__/ _ \ | |
# / ___ \| | | | (_| |/ __/ | __/| | | (_) | | |
# /_/ \_\_| |_|\__,_|_____| |_| |_| \___/ | |
# | |
# https://github.com/P3TERX/Aria2-Pro-Docker | |
# | |
# Copyright (c) 2020-2021 P3TERX <https://p3terx.com> | |
# | |
# This is free software, licensed under the MIT License. | |
# See /LICENSE for more information. | |
name: Daily Build Test | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
push: | |
paths: | |
- 'rootfs/**' | |
- 'Dockerfile' | |
schedule: | |
- cron: 10 16 * * * | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Marker version and time | |
run: | | |
sed -i "s@COMMIT_HASH@$(git rev-parse --short HEAD)@" rootfs/Aria2-Pro | |
sed -i "s@DATE_TIME@$(date +"%Y/%m/%d %H:%M")@" rootfs/Aria2-Pro | |
cat rootfs/Aria2-Pro | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 | |
file: Dockerfile | |
context: . | |
push: true | |
tags: | | |
p3terx/aria2-pro:test | |
ghcr.io/p3terx/aria2-pro:test |