File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,18 +2,12 @@ name: Build
22
33on : [push]
44
5+ permissions :
6+ contents : read
7+
58jobs :
6- build :
7- runs-on : ubuntu-latest
8- steps :
9- - uses : actions/checkout@v2
10- - name : Build
11- run : |
12- curl --fail --location --silent --output bob https://function61.com/go/turbobob-latest-linux-amd64 && chmod +x bob
13- CI_REVISION_ID="$GITHUB_SHA" ./bob build --publish-artefacts
14- # unfortunately there doesn't seem to be a way to "expose all secrets", so you must
15- # list here each secret to pass on to the build
16- env :
17- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18- DOCKER_CREDS : ${{ secrets.DOCKER_CREDS }}
19- EVENTHORIZON : ${{ secrets.EVENTHORIZON }}
9+ reusable-build :
10+ # this basically just runs `$ bob build` (for details see https://github.com/function61/turbobob)
11+ uses : function61/turbobob-action/.github/workflows/build.yml@main
12+ secrets :
13+ DOCKER_CREDS : ${{ secrets.DOCKER_CREDS }}
You can’t perform that action at this time.
0 commit comments