Skip to content

Commit 9a75231

Browse files
PR comments
1 parent 90f59a1 commit 9a75231

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

.github/workflows/release-docker.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ env:
99
REGISTRY_IMAGE: sourcegraph/scip-clang
1010

1111
jobs:
12-
build:
12+
build-binaries:
1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
include:
1717
- os: ubuntu-22.04-32core-graph-team-amd64
1818
platform: linux/amd64
19-
binary_name: scip-clang-x86_64-linux
19+
binary-name: scip-clang-x86_64-linux
2020
- os: ubuntu-22.04-32core-graph-team-arm64
2121
platform: linux/arm64
22-
binary_name: scip-clang-arm64-linux
22+
binary-name: scip-clang-arm64-linux
2323
runs-on: ${{ matrix.os }}
2424
steps:
2525
- uses: actions/checkout@v4
2626

2727
- uses: bazel-contrib/setup-bazel@0.14.0
2828
with:
2929
bazelisk-cache: true
30-
disk-cache: ${{ github.workflow }}-${{ matrix.binary_name }}
30+
disk-cache: ${{ github.workflow }}-${{ matrix.binary-name }}
3131
repository-cache: true
3232

3333
- name: Build binary
@@ -37,21 +37,21 @@ jobs:
3737
uses: actions/upload-artifact@v4
3838
with:
3939
path: bazel-bin/indexer/scip-clang
40-
name: ${{ matrix.binary_name }}
40+
name: ${{ matrix.binary-name }}
4141
if-no-files-found: error
4242

4343
build-docker:
44-
needs: [build]
44+
needs: [build-binaries]
4545
strategy:
4646
fail-fast: false
4747
matrix:
4848
include:
4949
- os: ubuntu-22.04
5050
platform: linux/amd64
51-
binary_name: scip-clang-x86_64-linux
51+
binary-name: scip-clang-x86_64-linux
5252
- os: ubuntu-22.04-arm
5353
platform: linux/arm64
54-
binary_name: scip-clang-arm64-linux
54+
binary-name: scip-clang-arm64-linux
5555
runs-on: ${{ matrix.os }}
5656
steps:
5757
- uses: actions/checkout@v4
@@ -73,26 +73,19 @@ jobs:
7373
username: ${{ secrets.DOCKER_USERNAME }}
7474
password: ${{ secrets.DOCKER_PASSWORD }}
7575

76-
- name: Login to GHCR
77-
uses: docker/login-action@v3
78-
with:
79-
registry: ghcr.io
80-
username: ${{ github.repository_owner }}
81-
password: ${{ secrets.GITHUB_TOKEN }}
82-
8376
- name: Set up Docker Buildx
8477
uses: docker/setup-buildx-action@v3
8578

8679
- name: Download pre-built binary
8780
uses: actions/download-artifact@v4
8881
with:
89-
name: ${{ matrix.binary_name }}
82+
name: ${{ matrix.binary-name }}
9083
path: /tmp/binary
9184

9285
- run: cp /tmp/binary/scip-clang ./scip-clang && ls -l ./scip-clang
9386

9487
- name: Build and push by digest
95-
id: build
88+
id: build-images
9689
uses: docker/build-push-action@v6
9790
with:
9891
context: .
@@ -104,7 +97,7 @@ jobs:
10497
- name: Export digest
10598
run: |
10699
mkdir -p ${{ runner.temp }}/digests
107-
digest="${{ steps.build.outputs.digest }}"
100+
digest="${{ steps.build-images.outputs.digest }}"
108101
touch "${{ runner.temp }}/digests/${digest#sha256:}"
109102
110103
- name: Upload digest
@@ -115,7 +108,7 @@ jobs:
115108
if-no-files-found: error
116109
retention-days: 1
117110

118-
merge_docker:
111+
merge-docker:
119112
runs-on: ubuntu-latest
120113
needs: [build-docker]
121114
steps:

0 commit comments

Comments
 (0)