Add production environment to Docker publish workflow

This commit is contained in:
Amos 2025-09-06 18:06:25 +01:00 committed by GitHub
parent af1ac1380c
commit 3619707df7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,7 @@ on:
jobs:
build-and-push:
environment: production
runs-on: ubuntu-latest
permissions:
@ -32,13 +33,9 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# tag for releases
type=ref,event=tag
# tag for pull requests
type=ref,event=pr
# tag with commit sha
type=sha
- name: Build and push Docker image