Skip to content

Commit

Permalink
Add save as tar for scan
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Jan 24, 2025
1 parent a23f836 commit f3f406a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build_publish_image_autoinstrumentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit f3f406a

Please # to comment.