Skip to content

Commit 4b4ac7f

Browse files
committed
Make src_name configurable
1 parent 6b42bb3 commit 4b4ac7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-containers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
has_custom_build_script: true
7070
- container: standalone-db-migrator
7171
build_binary: migrate
72+
src_name: migration
7273
- container: trivy-adapter
7374
has_custom_build_script: true
7475

@@ -100,7 +101,7 @@ jobs:
100101
if: ${{ matrix.build_binary != '' }}
101102
run: |
102103
cd src/github.com/goharbor/harbor
103-
docker run --rm -v .:/harbor -w /harbor/src/${{ matrix.container }} golang:1.24.6 /usr/local/go/bin/go build -buildvcs=false -o make/photon/${{ matrix.container }}/${{matrix.build_binary}} ${ADDITIONAL_GO_FLAGS:-}
104+
docker run --rm -v .:/harbor -w /harbor/src/${{ matrix.src_name || matrix.container}} golang:1.24.6 /usr/local/go/bin/go build -buildvcs=false -o make/photon/${{ matrix.container }}/${{matrix.build_binary}} ${ADDITIONAL_GO_FLAGS:-}
104105
- name: Run custom build script
105106
if: ${{ matrix.has_custom_build_script == true }}
106107
run: |

0 commit comments

Comments
 (0)