Update
This commit is contained in:
14
.github/workflows/docker-build.yml
vendored
14
.github/workflows/docker-build.yml
vendored
@ -2,19 +2,19 @@ name: Build and Publish Docker Images
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, develop ]
|
branches: [main, develop]
|
||||||
tags: [ 'v*' ]
|
tags: ["v*"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
platforms:
|
platforms:
|
||||||
description: 'Platforms to build (comma-separated)'
|
description: "Platforms to build (comma-separated)"
|
||||||
required: false
|
required: false
|
||||||
default: 'linux/amd64,linux/arm64'
|
default: "linux/amd64,linux/arm64"
|
||||||
type: string
|
type: string
|
||||||
push_to_registry:
|
push_to_registry:
|
||||||
description: 'Push to registry'
|
description: "Push to registry"
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -22,7 +22,6 @@ on:
|
|||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME_1: ${{ github.repository_owner }}/voice-rss-summary
|
IMAGE_NAME_1: ${{ github.repository_owner }}/voice-rss-summary
|
||||||
IMAGE_NAME_2: ${{ github.repository_owner }}/voicersssummary
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -55,7 +54,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_1 }}
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_1 }}
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_2 }}
|
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
|
Reference in New Issue
Block a user