Add worlflow ignore

This commit is contained in:
YuCat 2024-02-28 21:11:41 +08:00
parent cb970d4991
commit 18f6226161

View File

@ -4,15 +4,19 @@ on:
workflow_dispatch:
push:
branches:
- "*"
- "main"
- "alpine"
paths-ignore:
- '.github/**'
- 'docs/**'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
AMD64:
name: Setup
Build:
name: Build AMD64
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -32,7 +36,7 @@ jobs:
echo "GITHUB_REF=${GITHUB_REF}" >> $GITHUB_OUTPUT
echo "BRACH=${BRACH}" >> $GITHUB_OUTPUT
- name: Docker meta
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
@ -48,7 +52,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
- name: Login to Github
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}