mirror of
https://github.com/Ayymoss/Plutainer
synced 2026-08-24 14:32:06 -04:00
Add production environment to Docker publish workflow
This commit is contained in:
parent
af1ac1380c
commit
3619707df7
1 changed files with 1 additions and 4 deletions
5
.github/workflows/docker-publish.yml
vendored
5
.github/workflows/docker-publish.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue