diff --git a/.github/workflows/build_publish_image_autoinstrumentation.yaml b/.github/workflows/build_publish_image_autoinstrumentation.yaml index 96ad3d3f..ec067257 100644 --- a/.github/workflows/build_publish_image_autoinstrumentation.yaml +++ b/.github/workflows/build_publish_image_autoinstrumentation.yaml @@ -50,8 +50,11 @@ jobs: build-args: version=${{ env.VERSION }} tags: ${{ github.repository_owner }}/autoinstrumentation-python:${{ env.VERSION }},${{ github.repository_owner }}/autoinstrumentation-python:latest + - name: Save Docker image as tar file + run: docker save -o autoinstrumentation-python-${{ env.VERSION }}.tar ${{ github.repository_owner }}/autoinstrumentation-python:${{ env.VERSION }} + - name: Set artifact name - run: echo "artifact-name=${{ github.repository_owner }}/autoinstrumentation-python:${{ env.VERSION }}" >> $GITHUB_ENV + run: echo "artifact-name=autoinstrumentation-python-${{ env.VERSION }}.tar" >> $GITHUB_ENV - name: RL scan image (rl-submit-only) env: @@ -102,8 +105,11 @@ jobs: build-args: version=${{ env.VERSION }} tags: ghcr.io/${{ github.repository_owner }}/autoinstrumentation-python:${{ env.VERSION }},ghcr.io/${{ github.repository_owner }}/autoinstrumentation-python:latest + - name: Save Docker image as tar file + run: docker save -o autoinstrumentation-python-${{ env.VERSION }}.tar ghcr.io/${{ github.repository_owner }}/autoinstrumentation-python:${{ env.VERSION }} + - name: Set artifact name - run: echo "artifact-name=ghcr.io/${{ github.repository_owner }}/autoinstrumentation-python:${{ env.VERSION }}" >> $GITHUB_ENV + run: echo "artifact-name=autoinstrumentation-python-${{ env.VERSION }}.tar" >> $GITHUB_ENV - name: RL scan image (rl-submit-only) env: @@ -116,10 +122,4 @@ jobs: rl-portal-server: solarwinds rl-portal-org: SolarWinds rl-portal-group: "SaaS-Agents-SWO" - rl-package-url: apm-python/apm-python-autoinstrumentation-image-ghcr@${{ env.VERSION }} - - - name: Push image - uses: docker/build-push-action@v6 - with: - push: true - tags: ghcr.io/${{ github.repository_owner }}/autoinstrumentation-python:${{ env.VERSION }},ghcr.io/${{ github.repository_owner }}/autoinstrumentation-python:latest + rl-package-url: apm-python/apm-python-autoinstrumentation-image-ghcr@${{ env.VERSION }} \ No newline at end of file