Skip to content

Commit b8d470b

Browse files
committed
add in other environments
1 parent 82d7dd6 commit b8d470b

2 files changed

Lines changed: 27 additions & 8 deletions

File tree

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
name: Build Docker Image
22

33
on:
4-
push:
5-
branches:
6-
- main
74
workflow_dispatch:
8-
9-
permissions:
10-
id-token: write
11-
contents: write
5+
inputs:
6+
env:
7+
required: true
8+
type: string
129

1310
jobs:
1411
docker-build:
1512
name: Build Docker
1613
runs-on: ubuntu-latest
17-
environment: dev
14+
environment: ${{ inputs.env }}
1815
steps:
1916
- name: Checkout code
2017
uses: actions/checkout@v6

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
id-token: write
11+
contents: write
12+
13+
jobs:
14+
strategy:
15+
matrix:
16+
env: [dev, prod, test]
17+
build:
18+
name: Build
19+
secrets: inherit
20+
uses: ./.github/workflows/build.yml
21+
with:
22+
env: ${{ matrix.env }}

0 commit comments

Comments
 (0)