mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-06-28 01:48:26 +00:00
ci: update CI file
This commit is contained in:
parent
089c63a70b
commit
331e0a1532
@ -1,52 +1,56 @@
|
|||||||
name: 'Invidious CI'
|
name: "Invidious CI"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# workflow_dispatch:
|
workflow_dispatch:
|
||||||
# inputs: {}
|
# schedule:
|
||||||
schedule:
|
# - cron: '0 7 * * 0'
|
||||||
- cron: '0 7 * * 0'
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "master"
|
- "master"
|
||||||
- "experimental"
|
paths-ignore:
|
||||||
- "experimental2"
|
- "*.md"
|
||||||
|
- LICENCE
|
||||||
|
- TRANSLATION
|
||||||
|
- invidious.service
|
||||||
|
- .git*
|
||||||
|
- .editorconfig
|
||||||
|
- screenshots/*
|
||||||
|
- .github/ISSUE_TEMPLATE/*
|
||||||
|
- kubernetes/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: https://code.forgejo.org/actions/checkout@v2
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
|
||||||
- uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
- uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
||||||
name: Setup Docker BuildX system
|
name: Setup Docker BuildX system
|
||||||
|
|
||||||
- name: Login to Docker Container Registry
|
- name: Login to Docker Container Registry
|
||||||
uses: https://code.forgejo.org/docker/login-action@v3.1.0
|
uses: https://code.forgejo.org/docker/login-action@v3.1.0
|
||||||
with:
|
with:
|
||||||
registry: git.nadeko.net
|
registry: git.nadeko.net
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.TOKEN }}
|
password: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: https://github.com/docker/metadata-action@v5
|
uses: https://github.com/docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: git.nadeko.net/fijxu/invidious
|
images: git.nadeko.net/fijxu/invidious
|
||||||
tags: |
|
tags: |
|
||||||
type=sha,format=short,prefix={{date 'YYYY.MM.DD'}}-,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
|
type=sha,format=short,prefix={{date 'YYYY.MM.DD'}}-,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
|
||||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
|
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
|
||||||
|
|
||||||
- uses: https://code.forgejo.org/docker/build-push-action@v6
|
|
||||||
name: Build images
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: docker/Dockerfile
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
platforms: linux/amd64
|
|
||||||
# cache-from: type=gha
|
|
||||||
# cache-to: type=gha,mode=max
|
|
||||||
push: true
|
|
||||||
build-args: |
|
|
||||||
"release=1"
|
|
||||||
|
|
||||||
|
- uses: https://code.forgejo.org/docker/build-push-action@v6
|
||||||
|
name: Build images
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: docker/Dockerfile
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
build-args: |
|
||||||
|
"release=1"
|
||||||
|
Loading…
Reference in New Issue
Block a user