From 53476761c41692cc364afb8499a4669f90052e08 Mon Sep 17 00:00:00 2001 From: Rin Kuryloski Date: Tue, 22 Aug 2023 11:06:24 +0200 Subject: [PATCH] Use override_module instead of override_repository in oci workflow --- .github/workflows/rabbitmq-oci.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rabbitmq-oci.yaml b/.github/workflows/rabbitmq-oci.yaml index f9a66272..6291891d 100644 --- a/.github/workflows/rabbitmq-oci.yaml +++ b/.github/workflows/rabbitmq-oci.yaml @@ -86,18 +86,15 @@ jobs: - name: Configure the ra override for this ra working-directory: rabbitmq-server run: | - sudo npm install --global --silent @bazel/buildozer - - rules_erlang_version="$(cat MODULE.bazel | buildozer 'print version' -:rules_erlang)" - ra_repo="rules_erlang~$rules_erlang_version~erlang_package~ra" - cat << EOF >> user.bazelrc - build --override_repository $ra_repo=${{ github.workspace }}/ra + build --override_module rabbitmq_ra=${{ github.workspace }}/ra EOF - name: Configure otp for the OCI image working-directory: rabbitmq-server run: | + sudo npm install --global --silent @bazel/buildozer + buildozer 'set tars ["@otp_src_${{ matrix.otp_version_id }}//file"]' \ //packaging/docker-image:otp_source