File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 5252 required : false
5353 type : boolean
5454 default : true
55+ secrets :
56+ required : false
57+ type : string
5558 secrets :
5659 REGISTRY_LOGIN :
5760 required : false
9497 no-cache : ${{ inputs.no-cache }}
9598 build-args : ${{ inputs.build-args }}
9699 file : ${{ env.FILE }}
100+ secrets : ${{ inputs.secrets }}
Original file line number Diff line number Diff line change 1212 with :
1313 context : tests/docker
1414 name : test
15+ docker-build-with-secrets :
16+ uses : ./.github/workflows/docker-build.yaml
17+ with :
18+ context : tests/docker-secrets
19+ name : test-secrets
20+ secrets : |
21+ my_secret=toto
22+ my_other_secret=tata
1523
1624 trivy :
1725 needs : docker-build
Original file line number Diff line number Diff line change 1+ FROM ubuntu
2+
3+ RUN --mount=type=secret,id=my_secret \
4+ cat /run/secrets/my_secret
5+
6+ RUN --mount=type=secret,id=my_other_secret \
7+ cat /run/secrets/my_other_secret
8+
9+ RUN apt-get update && apt-get install -y \
10+ git
You can’t perform that action at this time.
0 commit comments