Update publish.yml
This commit is contained in:
16
.github/workflows/publish.yml
vendored
16
.github/workflows/publish.yml
vendored
@@ -3,15 +3,15 @@ name: Build and Publish Docker Images
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- 'release-*'
|
||||
- "v*"
|
||||
- "release-*"
|
||||
branches:
|
||||
- main
|
||||
- production
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Version tag (e.g., 1.0.0)'
|
||||
description: "Version tag (e.g., 1.0.0)"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./
|
||||
file: ./frontend/Dockerfile.prod
|
||||
file: ./frontend/Dockerfile.svelte
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
@@ -202,8 +202,8 @@ jobs:
|
||||
uses: actions/delete-package-versions@v4
|
||||
continue-on-error: true
|
||||
with:
|
||||
package-name: '${{ env.PROJECT_NAME }}-backend'
|
||||
package-type: 'container'
|
||||
package-name: "${{ env.PROJECT_NAME }}-backend"
|
||||
package-type: "container"
|
||||
min-versions-to-keep: 10
|
||||
delete-only-untagged-versions: false
|
||||
|
||||
@@ -211,8 +211,8 @@ jobs:
|
||||
uses: actions/delete-package-versions@v4
|
||||
continue-on-error: true
|
||||
with:
|
||||
package-name: '${{ env.PROJECT_NAME }}-frontend'
|
||||
package-type: 'container'
|
||||
package-name: "${{ env.PROJECT_NAME }}-frontend"
|
||||
package-type: "container"
|
||||
min-versions-to-keep: 10
|
||||
delete-only-untagged-versions: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user