File tree Expand file tree Collapse file tree 2 files changed +35
-10
lines changed
Expand file tree Collapse file tree 2 files changed +35
-10
lines changed Original file line number Diff line number Diff line change 1+ name : Build docker image
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ push :
7+ description : Indicates if the docker image has to be pushed
8+ type : boolean
9+ default : false
10+ outputs :
11+ image-tag :
12+ description : Image tag used
13+ value : ${{ github.event.pull_request.head.sha || github.sha }}
14+
15+ defaults :
16+ run :
17+ shell : bash
18+
19+ jobs :
20+ build :
21+ name : Docker Build 🐋
22+ runs-on : x1-core
23+ permissions :
24+ id-token : write
25+ contents : read
26+ packages : write
27+ steps :
28+ - name : Docker build
29+ uses : cloudbeds/composite-actions/docker/build-push/remote@v2
30+ with :
31+ push : ${{ inputs.push }}
Original file line number Diff line number Diff line change 1010jobs :
1111 build-push :
1212 name : Build and push application image
13- runs-on : x1-core
14- permissions :
15- id-token : write
16- contents : read
17- steps :
18-
19- - name : Build and push application image
20- uses : cloudbeds/composite-actions/docker/build-push/remote@v2
21- with :
22- push : true
13+ uses : ./.github/workflows/docker-build.yaml
14+ secrets : inherit
15+ with :
16+ push : true
You can’t perform that action at this time.
0 commit comments