fscarmen【Sing-box 全家桶】
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test/.github/workflows/nezha.yml

45 lines
1.1 KiB

name: "Check and download app"
on:
workflow_dispatch:
push:
# branches:
# - main
schedule:
- cron: 0 16 * * *
jobs:
build:
runs-on: ubuntu-latest
# container: docker.io/arm64v8/ubuntu
steps:
# - uses: actions/checkout@v3.5.3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# with:
# platforms: arm64
- name: checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# with:
# platforms: arm64
- name: Check and download app
run: |
docker container create --name test ghcr.io/naiba/nezha-dashboard
docker container cp test:/dashboard/app wireguard-go/app-arm64
echo "DATE=$(date "+%Y/%m/%d %H:%M:%S")" >> $GITHUB_ENV
- name: Upload to repository
uses: stefanzweifel/git-auto-commit-action@v4.16.0
with:
commit_message: Sync app by Github Actions, ${{ env.DATE }}