summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRin Kuryloski <kuryloskip@vmware.com>2022-10-19 15:10:50 +0200
committerRin Kuryloski <kuryloskip@vmware.com>2022-10-19 15:10:50 +0200
commit59fd62099a2c925110b3a4375625ec45105e7391 (patch)
tree7b27c9b71b5f79f74fac8948f0269e653c981476 /.github
parent1f6ead8055297dd5b798a60a00bf2e647753e693 (diff)
downloadrabbitmq-server-git-59fd62099a2c925110b3a4375625ec45105e7391.tar.gz
Sync the approach in oci.yaml workflow across branches
In #6163 some enhancements were introduced that are worth using on main and v3.11.x
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/oci.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/oci.yaml b/.github/workflows/oci.yaml
index 5bd606497c..4e971814c7 100644
--- a/.github/workflows/oci.yaml
+++ b/.github/workflows/oci.yaml
@@ -74,7 +74,8 @@ jobs:
id: load-info
run: |
bazelisk build :otp_version :elixir_version \
- --config=rbe-${{ matrix.otp_version_id }}
+ --config=rbe \
+ --platforms=//bazel/platforms:erlang_linux_${{ matrix.otp_version_id }}_platform
echo "otp=$(cat bazel-bin/otp_version.txt)" >> $GITHUB_OUTPUT
echo "elixir=$(cat bazel-bin/elixir_version.txt)" >> $GITHUB_OUTPUT
@@ -84,11 +85,12 @@ jobs:
otp-version: ${{ steps.load-info.outputs.otp }}
elixir-version: ${{ steps.load-info.outputs.elixir }}
- - name: Validate otp version embedded in OCI
+ - name: Configure otp for the OCI image
run: |
- bazel cquery //packaging/docker-image:otp_source \
- --config=buildbuddy \
- --output=build
+ sudo npm install --global --silent @bazel/buildozer
+
+ buildozer 'set tars ["@otp_src_${{ matrix.otp_version_id }}//file"]' \
+ //packaging/docker-image:otp_source
- name: Build
run: |