Skip to content

Commit 9f8cad8

Browse files
committed
build using reusable workflow
1 parent 983ac4a commit 9f8cad8

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@ name: Build
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
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 }}

0 commit comments

Comments
 (0)