Skip to content

Commit 02d741d

Browse files
committed
build: use reusable workflow
1 parent b808450 commit 02d741d

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@ name: Build
22

33
on: [push]
44

5-
jobs:
6-
build:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v4
5+
permissions:
6+
contents: read
107

11-
- uses: docker/setup-buildx-action@v1
8+
jobs:
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 }}
1214

13-
- name: Build
14-
run: |
15-
set -eu
16-
curl --fail --location --no-progress-meter --output bob https://function61.com/go/turbobob-latest-stable-linux-amd64 && chmod +x bob
17-
./bob build in-ci-autodetect-settings
18-
env:
19-
DOCKER_CREDS: ${{ secrets.DOCKER_CREDS }}
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
EVENTHORIZON: ${{ secrets.EVENTHORIZON }}

0 commit comments

Comments
 (0)