Skip to content

Commit

Permalink
Publish first, scan after
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Jan 27, 2025
1 parent 4ccc72a commit 70ac442
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/build_publish_image_autoinstrumentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image
- name: Build and push multi-platform image
uses: docker/build-push-action@v6
with:
push: false
load: true
push: true
context: image
platforms: linux/amd64,linux/arm64
build-args: version=${{ env.VERSION }}
Expand Down Expand Up @@ -73,12 +72,6 @@ jobs:
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: ${{ github.repository_owner }}/autoinstrumentation-python:${{ env.VERSION }},${{ github.repository_owner }}/autoinstrumentation-python:latest

ghcr_io:
runs-on: ubuntu-latest
steps:
Expand All @@ -100,11 +93,10 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image
- name: Build and push multi-platform image
uses: docker/build-push-action@v6
with:
push: false
load: true
push: true
context: image
platforms: linux/amd64,linux/arm64
build-args: version=${{ env.VERSION }}
Expand Down

0 comments on commit 70ac442

Please # to comment.