Update github action

This commit is contained in:
EstrellaXD
2023-03-15 10:47:25 +08:00
parent 2c26ce6f14
commit cdac58dd14
2 changed files with 18 additions and 14 deletions

View File

@@ -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

View File

@@ -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 }}