Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Jan 16, 2025
1 parent ab6bfa9 commit c062e15
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,48 +27,26 @@ jobs:
with:
fetch-depth: 0

- name: Check if builder is modified
id: builder-files
uses: tj-actions/changed-files@v34
with:
files: |
docker/builder/**
- name: Set up Docker Buildx
if: steps.builder-files.outputs.any_changed == 'true'
uses: docker/setup-buildx-action@v3

- name: Login to Github Packages
if: steps.builder-files.outputs.any_changed == 'true'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get new builder image tag
id: get-new-builder
if: steps.builder-files.outputs.any_changed == 'true'
run: |
echo "builder_image=${{ (github.event.pull_request.number != '') && format('{0}:{1}', env.BUILDER_IMAGE_BASE, github.event.pull_request.number) || env.BUILDER_DEV }}" >> $GITHUB_OUTPUT
- name: Build new builder
id: build-builder
if: steps.builder-files.outputs.any_changed == 'true'
uses: docker/build-push-action@v6
with:
context: docker/builder
platforms: linux/${{ matrix.platform }}
tags: ${{ steps.get-new-builder.outputs.builder_image }}
push: true
outputs:
builder_image: ${{ (steps.builder-files.outputs.any_changed == 'true') && steps.get-new-builder.outputs.builder_image || env.BUILDER_DEV }}
tags: sysdig-builder:latest
outputs: type=docker,dest=/tmp/sysdig-${{ matrix.platform }}-builder-image.tar
cache-from: type=registry,ref=sysdig-builder:latest
cache-to: type=registry,ref=sysdig-builder:latest,mode=max

build-sysdig-linux:
needs: [builder]
runs-on: ubuntu-24.04${{ matrix.platform == 'arm64' && '-arm64' || '' }}
container:
image: ${{ needs.builder.outputs.builder_image }}
image: sysdig-builder:latest
strategy:
matrix:
platform:
Expand Down

0 comments on commit c062e15

Please sign in to comment.