diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index 616d5e3b..281e595a 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -6,7 +6,7 @@ on: jobs: build_docker: - name: Docker + name: Build docker runs-on: ubuntu-latest steps: - name: Checkout @@ -36,4 +36,30 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 \ No newline at end of file + platforms: linux/amd64,linux/arm64 + + build_docker_with_aria2: + needs: build_docker + name: Build docker with aria2 + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + with: + repository: alist-org/with_aria2 + ref: main + persist-credentials: false + fetch-depth: 0 + + - name: Commit + run: | + git config --local user.email "i@nn.ci" + git config --local user.name "Noah Hsu" + git commit --allow-empty -m "Trigger build for ${{ github.sha }}" + + - name: Push commit + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.MY_TOKEN }} + branch: main + repository: alist-org/with_aria2 \ No newline at end of file diff --git a/.github/workflows/release_docker.yml b/.github/workflows/release_docker.yml index 38a84f4e..a11dc30e 100644 --- a/.github/workflows/release_docker.yml +++ b/.github/workflows/release_docker.yml @@ -7,7 +7,7 @@ on: jobs: release_docker: - name: Docker + name: Release Docker runs-on: ubuntu-latest steps: - name: Checkout @@ -39,4 +39,30 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x \ No newline at end of file + platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x + + release_docker_with_aria2: + needs: release_docker + name: Release docker with aria2 + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + with: + repository: alist-org/with_aria2 + ref: main + persist-credentials: false + fetch-depth: 0 + + - name: Add tag + run: | + git config --local user.email "i@nn.ci" + git config --local user.name "Noah Hsu" + git tag -a ${{ github.ref_name }} -m "release ${{ github.ref_name }}" + + - name: Push tags + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.MY_TOKEN }} + branch: main + repository: alist-org/with_aria2