We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d7dd6 commit b8d470bCopy full SHA for b8d470b
2 files changed
.github/workflows/dev.yml .github/workflows/build.yml.github/workflows/dev.yml renamed to .github/workflows/build.yml
@@ -1,20 +1,17 @@
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
+ inputs:
+ env:
+ required: true
+ type: string
12
13
jobs:
14
docker-build:
15
name: Build Docker
16
runs-on: ubuntu-latest
17
- environment: dev
+ environment: ${{ inputs.env }}
18
steps:
19
- name: Checkout code
20
uses: actions/checkout@v6
.github/workflows/deploy.yml
@@ -0,0 +1,22 @@
+name: Build Docker Image
+
+on:
+ push:
+ branches:
+ - main
+ workflow_dispatch:
+permissions:
+ id-token: write
+ contents: write
+jobs:
+ strategy:
+ matrix:
+ env: [dev, prod, test]
+ build:
+ name: Build
+ secrets: inherit
+ uses: ./.github/workflows/build.yml
21
+ with:
22
+ env: ${{ matrix.env }}
0 commit comments