mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-03-25 14:22:24 +08:00
Update github action
This commit is contained in:
10
.github/workflows/dev-latest.yml
vendored
10
.github/workflows/dev-latest.yml
vendored
@@ -1,8 +1,9 @@
|
||||
name: Deploy To Dockerhub(dev)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
branches: [ 2.6.0-dev ]
|
||||
push:
|
||||
tags:
|
||||
- '\d+\.\d+\.\d+-beta\d+'
|
||||
|
||||
jobs:
|
||||
latest:
|
||||
@@ -32,5 +33,8 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: estrellaxd/auto_bangumi:2.6.0-beta2
|
||||
tags: |
|
||||
estrellaxd/auto_bangumi:dev-latest
|
||||
estrellaxd/auto_bangumi:dev-${{ github.sha }}
|
||||
estrellaxd/auto_bangumi:${{ github.ref }}
|
||||
file: Dockerfile
|
||||
|
||||
22
.github/workflows/docker.yml
vendored
22
.github/workflows/docker.yml
vendored
@@ -1,9 +1,13 @@
|
||||
name: Build(Docker)
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- released
|
||||
push:
|
||||
tags:
|
||||
- '\d+\.\d+\.\d+'
|
||||
pull_request:
|
||||
tags:
|
||||
- '\d+\.\d+\.\d+'
|
||||
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
@@ -16,13 +20,6 @@ jobs:
|
||||
working-directory: ./src
|
||||
run: |
|
||||
echo "VERSION = '$GITHUB_REF_NAME'" > module/__version__.py
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: ${{ secrets.DOCKER_HUB_USERNAME }}/auto_bangumi
|
||||
tags: |
|
||||
type=ref, event=tag
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
@@ -42,5 +39,8 @@ jobs:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64,linux/arm
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
tags: |
|
||||
estrellaxd/auto_bangumi:latest
|
||||
estrellaxd/auto_bangumi:${{ github.sha }}
|
||||
estrellaxd/auto_bangumi:${{ github.ref }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
Reference in New Issue
Block a user