Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/build-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ jobs:
fail-fast: false
matrix:
include:
- name: raspios-bookworm
runner: ubuntu-22.04-4core-arm64
platform: arm64
- name: ubuntu-noble
runner: ubuntu-22.04-4core-arm64
platform: arm64
- name: ubuntu-noble
runner: ubuntu-22.04
platform: amd64
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ jobs:
fail-fast: false
matrix:
include:
- name: raspios-bookworm
runner: ubuntu-22.04-4core-arm64
platform: arm64
- name: ubuntu-noble
runner: ubuntu-22.04-4core-arm64
platform: arm64
- name: ubuntu-noble
runner: ubuntu-22.04
platform: amd64
Expand Down
58 changes: 1 addition & 57 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
with:
files: |
.devcontainer/ubuntu/Dockerfile
.devcontainer/raspi/Dockerfile
.github/workflows/builder.yml

- name: Set builder tag
Expand All @@ -71,35 +70,6 @@ jobs:
echo "$file"
done

build-push-raspi:
name: Build and push raspios bookworm builder
if: ${{ needs.builder-necessary.outputs.build == 'true' }}
needs:
- builder-necessary
runs-on: ubuntu-22.04-4core-arm64

steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Github Registry
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ github.token }}
registry: ghcr.io

- name: Build and push raspios bookworm builder
uses: docker/build-push-action@v5
with:
context: .devcontainer/raspi
file: .devcontainer/raspi/Dockerfile
push: true
tags: ghcr.io/${{ inputs.package-namespace }}/builder-raspios-bookworm:${{ needs.builder-necessary.outputs.builder-tag }}

build-push-ubuntu:
name: Build and push ubuntu noble (${{ matrix.platform }})
if: ${{ needs.builder-necessary.outputs.build == 'true' }}
Expand All @@ -112,8 +82,6 @@ jobs:
include:
- platform: amd64
runner: ubuntu-22.04
- platform: arm64
runner: ubuntu-22.04-4core-arm64

steps:
- name: Checkout the code
Expand All @@ -136,28 +104,4 @@ jobs:
file: .devcontainer/ubuntu/Dockerfile
push: true
provenance: false
tags: ghcr.io/${{ inputs.package-namespace }}/builder-ubuntu-noble:${{ needs.builder-necessary.outputs.builder-tag }}-${{ matrix.platform }}

manifest-ubuntu:
if: ${{ needs.builder-necessary.outputs.build == 'true' }}
needs:
- builder-necessary
- build-push-ubuntu
name: Docker manifest
runs-on: ubuntu-22.04

steps:
- name: Login to Github Registry
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ github.token }}
registry: ghcr.io

- name: Create and push multiarch manifests
run: |
docker manifest create \
ghcr.io/${{ inputs.package-namespace }}/builder-ubuntu-noble:${{ needs.builder-necessary.outputs.builder-tag }} \
ghcr.io/${{ inputs.package-namespace }}/builder-ubuntu-noble:${{ needs.builder-necessary.outputs.builder-tag }}-amd64 \
ghcr.io/${{ inputs.package-namespace }}/builder-ubuntu-noble:${{ needs.builder-necessary.outputs.builder-tag }}-arm64
docker manifest push ghcr.io/${{ inputs.package-namespace }}/builder-ubuntu-noble:${{ needs.builder-necessary.outputs.builder-tag }}
tags: ghcr.io/${{ inputs.package-namespace }}/builder-ubuntu-noble:${{ needs.builder-necessary.outputs.builder-tag }}
70 changes: 0 additions & 70 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,66 +35,6 @@ jobs:
)
test -z $last_run_id && echo "cannot find last successful run_id" && exit 1 || echo "last_run_id=$last_run_id" && echo "last_run_id=$last_run_id" >> $GITHUB_OUTPUT

- name: Download Python SDK (RaspiOS bookworm ARM64)
uses: actions/download-artifact@v4
env:
LAST_RUN_ID: ${{ steps.run-id.outputs.last_run_id }}
with:
name: python-sdk-raspios-bookworm-arm64-${{ env.LAST_RUN_ID }}
run-id: ${{ env.LAST_RUN_ID }}
path: dist-raspios-bookworm-arm64
github-token: ${{ github.event.repository.private && secrets.MIDOJENKINS_ARTIFACT_READ_EVP_AGENT_OSS || github.token }}

- name: Download Python SDK deb (RaspiOS bookworm ARM64)
uses: actions/download-artifact@v4
env:
LAST_RUN_ID: ${{ steps.run-id.outputs.last_run_id }}
with:
name: python-sdk-deb-raspios-bookworm-arm64-${{ env.LAST_RUN_ID }}
run-id: ${{ env.LAST_RUN_ID }}
path: dist-raspios-bookworm-arm64
github-token: ${{ github.event.repository.private && secrets.MIDOJENKINS_ARTIFACT_READ_EVP_AGENT_OSS || github.token }}

- name: Download Agent deb (RaspiOS bookworm ARM64)
uses: actions/download-artifact@v4
env:
LAST_RUN_ID: ${{ steps.run-id.outputs.last_run_id }}
with:
name: agent-deb-raspios-bookworm-arm64-${{ env.LAST_RUN_ID }}
run-id: ${{ env.LAST_RUN_ID }}
path: dist-raspios-bookworm-arm64
github-token: ${{ github.event.repository.private && secrets.MIDOJENKINS_ARTIFACT_READ_EVP_AGENT_OSS || github.token }}

- name: Download Python SDK (Ubuntu noble ARM64)
uses: actions/download-artifact@v4
env:
LAST_RUN_ID: ${{ steps.run-id.outputs.last_run_id }}
with:
name: python-sdk-ubuntu-noble-arm64-${{ env.LAST_RUN_ID }}
run-id: ${{ env.LAST_RUN_ID }}
path: dist-ubuntu-noble-arm64
github-token: ${{ github.event.repository.private && secrets.MIDOJENKINS_ARTIFACT_READ_EVP_AGENT_OSS || github.token }}

- name: Download Python SDK deb (Ubuntu noble ARM64)
uses: actions/download-artifact@v4
env:
LAST_RUN_ID: ${{ steps.run-id.outputs.last_run_id }}
with:
name: python-sdk-deb-ubuntu-noble-arm64-${{ env.LAST_RUN_ID }}
run-id: ${{ env.LAST_RUN_ID }}
path: dist-ubuntu-noble-arm64
github-token: ${{ github.event.repository.private && secrets.MIDOJENKINS_ARTIFACT_READ_EVP_AGENT_OSS || github.token }}

- name: Download Agent deb (Ubuntu noble ARM64)
uses: actions/download-artifact@v4
env:
LAST_RUN_ID: ${{ steps.run-id.outputs.last_run_id }}
with:
name: agent-deb-ubuntu-noble-arm64-${{ env.LAST_RUN_ID }}
run-id: ${{ env.LAST_RUN_ID }}
path: dist-ubuntu-noble-arm64
github-token: ${{ github.event.repository.private && secrets.MIDOJENKINS_ARTIFACT_READ_EVP_AGENT_OSS || github.token }}

- name: Download Python SDK (Ubuntu noble AMD64)
uses: actions/download-artifact@v4
env:
Expand Down Expand Up @@ -143,10 +83,6 @@ jobs:
mv $deb $(echo $deb | sed -E 's/(.*)_([^_]*).deb/\1-ubuntu-noble_\2.deb/');
done

for deb in dist-raspios-bookworm-*/*.deb; do
mv $deb $(echo $deb | sed -E 's/(.*)_([^_]*).deb/\1-raspios-bookworm_\2.deb/');
done

- name: Create a zip for sbom
run: |
set -x
Expand All @@ -159,12 +95,6 @@ jobs:
- name: List files in dist-ubuntu-noble-amd64
run: ls -la dist-ubuntu-noble-amd64

- name: List files in dist-ubuntu-noble-arm64
run: ls -la dist-ubuntu-noble-arm64

- name: List files in dist-raspios-bookworm-arm64
run: ls -la dist-raspios-bookworm-arm64

- name: Push artifacts to release
uses: softprops/action-gh-release@v2
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ jobs:
fail-fast: false
matrix:
include:
- name: raspios-bookworm
runner: ubuntu-22.04-4core-arm64
platform: arm64
- name: ubuntu-noble
runner: ubuntu-22.04-4core-arm64
platform: arm64
- name: ubuntu-noble
runner: ubuntu-22.04
platform: amd64
Expand Down Expand Up @@ -137,7 +131,7 @@ jobs:
retention-days: ${{ job.status == 'success' && '7' || '14' }}

- name: Report code coverage
if: ${{ matrix.name == 'raspios-bookworm' && matrix.platform == 'arm64' }}
if: ${{ matrix.name == 'ubuntu-noble' && matrix.platform == 'amd64' }}
id: report-action-lcov
uses: zgosalvez/github-actions-report-lcov@v4.1.2
with:
Expand All @@ -148,7 +142,7 @@ jobs:
update-comment: true

- name: Report summary coverage to status
if: ${{ matrix.name == 'raspios-bookworm' && matrix.platform == 'arm64' }}
if: ${{ matrix.name == 'ubuntu-noble' && matrix.platform == 'amd64' }}
uses: guibranco/github-status-action-v2@v1.1.13
with:
authToken: ${{ github.token }}
Expand Down