Skip to content

Commit

Permalink
Update nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepgod authored Nov 4, 2024
1 parent 73ad2a5 commit 9f9061a
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,47 @@
name: Build jellyfin nightly2

on:
workflow_dispatch:
push:
branches: [ "nightly" ]
pull_request:
branches: [ "nightly" ]
schedule:
- cron: 30 0 * * *

jobs:
Docker-trigger-scheduler:
runs-on: ubuntu-latest

steps:
- name: Initialization environment
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
-
name: Set up QEMU
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'nightly'
- run: |
dt=`date +%Y%m%d%H%M%S`
echo $dt
sed -i "7c LABEL build_version=\"sleepgod version:nightly Build-date:$dt\"" Dockerfile
git config user.name sleepgod
git config user.email dingwenxuan@gmail.com
git add .
git commit -m "build_version"
git push
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
Expand Down

0 comments on commit 9f9061a

Please sign in to comment.