Skip to content

Commit e2725cc

Browse files
committed
add dev env in workflow
1 parent b550293 commit e2725cc

3 files changed

Lines changed: 245 additions & 485 deletions

File tree

.github/workflows/_build-and-push.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
description: "Environment name for Docker layer cache scope (dev/staging/production)"
1919
required: true
2020
type: string
21+
github-environment:
22+
description: "Optional GitHub Environment name used for secrets/approvals"
23+
required: false
24+
type: string
25+
default: ""
2126
tags:
2227
description: "docker/metadata-action tags spec (multiline)"
2328
required: true
@@ -51,6 +56,7 @@ jobs:
5156
name: "(${{ matrix.service }})"
5257
runs-on: ubuntu-latest
5358
timeout-minutes: 20
59+
environment: ${{ inputs.github-environment != '' && inputs.github-environment || inputs.env-name }}
5460
strategy:
5561
matrix:
5662
service: [backend, frontend]

0 commit comments

Comments
 (0)