Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmittag committed Nov 2, 2023
2 parents ff02951 + cfbca8d commit 811c161
Show file tree
Hide file tree
Showing 45 changed files with 3,552 additions and 867 deletions.
31 changes: 0 additions & 31 deletions .github/actions/check-dash/action.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/check_push_rights.yml

This file was deleted.

20 changes: 12 additions & 8 deletions .github/workflows/kuksa-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ concurrency:
cancel-in-progress: true

jobs:
checkrights:
uses: ./.github/workflows/check_push_rights.yml
check_ghcr_push:
uses: eclipse-kuksa/kuksa-actions/.github/workflows/check_ghcr_push.yml@2
secrets: inherit

build-docker:
runs-on: self-hosted
needs: checkrights
needs: check_ghcr_push

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
# uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
if: needs.checkrights.outputs.have_secrets == 'true'
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/login-action@v2
with:
registry: ghcr.io
Expand All @@ -77,7 +77,7 @@ jobs:
#password: ${{ secrets.PUSH_CONTAINER_TOKEN }}

- name: Build kuksa command line client docker and push to ghcr.io
if: ${{ needs.checkrights.outputs.have_secrets == 'true' && github.event_name != 'pull_request' }}
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/build-push-action@v4
with:
platforms: |
Expand All @@ -91,19 +91,23 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

# Push currently disabled as it results in 413 Request Entity Too Large
- name: Build ephemereal kuksa command line client docker and push to ttl.sh
if: ${{ needs.checkrights.outputs.have_secrets == 'false' || github.event_name == 'pull_request' }}
- name: Build ephemeral KUKSA command line client docker and push to ttl.sh
if: needs.check_ghcr_push.outputs.push == 'false'
uses: docker/build-push-action@v4
with:
platforms: |
linux/amd64
linux/arm64
context: .
file: kuksa-client/Dockerfile
push: false
push: true
tags: "ttl.sh/kuksa.val/kuksa-client-${{github.sha}}"
labels: ${{ steps.meta.outputs.labels }}

- name: Posting temporary container location
uses: ./.github/actions/post-container-location
with:
image: ttl.sh/kuksa.val/kuksa-client-${{github.sha}}

kuksa-client-test:
runs-on: ubuntu-latest
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/kuksa_databroker-cli_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Installing JVM
run: sudo apt update && sudo apt-get install -y default-jre
- uses: actions/checkout@v3
- name: cargo fmt
working-directory: ${{github.workspace}}
run: cargo fmt -- --check
- name: cargo clippy
working-directory: ${{github.workspace}}
run: cargo clippy --all-targets -- -W warnings -D warnings
- name: cargo clippy feature kuksa
working-directory: ${{github.workspace}}
run: cargo clippy --all-targets --no-default-features --features feature_kuksa -- -W warnings -D warnings

- name: "Createbom: License check and Dash output generation"
working-directory: ${{github.workspace}}/kuksa_databroker/createbom
run: |
cargo install cargo-license
python3 createbom.py --dash ${{github.workspace}}/dash-databroker-cli-deps ../databroker-cli
- name: Dash license check
uses: ./.github/actions/check-dash
with:
dashinput: ${{github.workspace}}/dash-databroker-cli-deps



checkrights:
uses: ./.github/workflows/check_push_rights.yml
check_ghcr_push:
uses: eclipse-kuksa/kuksa-actions/.github/workflows/check_ghcr_push.yml@2
secrets: inherit

# Run on selfhosted, because our runner has native ARM build in a remote
# builder (no need for qemu)
build-container:
runs-on: [ self-hosted ]
needs: checkrights
needs: check_ghcr_push

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -101,7 +82,7 @@ jobs:
# uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
if: needs.checkrights.outputs.have_secrets == 'true'
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/login-action@v2
with:
registry: ghcr.io
Expand All @@ -110,7 +91,7 @@ jobs:

- name: Build kuksa.val databroker CLI container and push to ghcr.io (and ttl.sh)
id: ghcr-build
if: ${{ needs.checkrights.outputs.have_secrets == 'true' && github.event_name != 'pull_request' }}
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/build-push-action@v4
with:
platforms: |
Expand All @@ -124,8 +105,8 @@ jobs:
ttl.sh/kuksa.val/kuksa-databroker-cli-${{github.sha}}
labels: ${{ steps.meta.outputs.labels }}

- name: Build ephemereal kuksa.val databroker container and push to ttl.sh
if: ${{ needs.checkrights.outputs.have_secrets == 'false' || github.event_name == 'pull_request' }}
- name: Build ephemeral KUKSA Databroker container and push to ttl.sh
if: needs.check_ghcr_push.outputs.push == 'false'
id: tmp-build
uses: docker/build-push-action@v4
with:
Expand Down Expand Up @@ -163,3 +144,22 @@ jobs:
src: /app/
export: true
transform: s/app/databroker-cli/

bom:
name: Bill of Material Check
runs-on: ubuntu-latest
needs: build-container

steps:
- uses: actions/checkout@v3

- name: "Createbom: License check and Dash output generation"
working-directory: ${{github.workspace}}/kuksa_databroker/createbom
run: |
cargo install cargo-license
python3 createbom.py --dash ${{github.workspace}}/dash-databroker-deps ../databroker
- name: Dash license check
uses: eclipse-kuksa/kuksa-actions/check-dash@2
with:
dashinput: ${{github.workspace}}/dash-databroker-deps
48 changes: 29 additions & 19 deletions .github/workflows/kuksa_databroker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Installing JVM
run: sudo apt update && sudo apt-get install -y default-jre
- uses: actions/checkout@v3
- name: cargo fmt
working-directory: ${{github.workspace}}
run: cargo fmt -- --check
- name: cargo clippy
working-directory: ${{github.workspace}}
run: cargo clippy --all-targets -- -W warnings -D warnings
- name: cargo clippy (feature viss)
working-directory: ${{github.workspace}}
run: cargo clippy --features viss --all-targets -- -W warnings -D warnings

- name: "Createbom: License check and Dash output generation"
working-directory: ${{github.workspace}}/kuksa_databroker/createbom
run: |
cargo install cargo-license
python3 createbom.py --dash ${{github.workspace}}/dash-databroker-deps ../databroker
- name: Dash license check
uses: ./.github/actions/check-dash
with:
dashinput: ${{github.workspace}}/dash-databroker-deps

test:
name: Test
Expand Down Expand Up @@ -92,15 +83,15 @@ jobs:
# minimum_coverage: 40


checkrights:
uses: ./.github/workflows/check_push_rights.yml
check_ghcr_push:
uses: eclipse-kuksa/kuksa-actions/.github/workflows/check_ghcr_push.yml@2
secrets: inherit

# Run on selfhosted, because our runner has native ARM build in a remote
# builder (no need for qemu)
build-container:
runs-on: [ self-hosted ]
needs: checkrights
needs: check_ghcr_push

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -131,7 +122,7 @@ jobs:
# uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
if: needs.checkrights.outputs.have_secrets == 'true'
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/login-action@v2
with:
registry: ghcr.io
Expand All @@ -140,7 +131,7 @@ jobs:

- name: Build kuksa.val databroker container container and push to ghcr.io (and ttl.sh)
id: ghcr-build
if: ${{ needs.checkrights.outputs.have_secrets == 'true' && github.event_name != 'pull_request' }}
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/build-push-action@v4
with:
platforms: |
Expand All @@ -154,8 +145,8 @@ jobs:
ttl.sh/kuksa.val/kuksa-databroker-${{github.sha}}
labels: ${{ steps.meta.outputs.labels }}

- name: Build ephemereal kuksa.val databroker container and push to ttl.sh
if: ${{ needs.checkrights.outputs.have_secrets == 'false' || github.event_name == 'pull_request' }}
- name: Build ephemeral KUKSA Databroker container and push to ttl.sh
if: needs.check_ghcr_push.outputs.push == 'false'
id: tmp-build
uses: docker/build-push-action@v4
with:
Expand Down Expand Up @@ -208,3 +199,22 @@ jobs:
DATABROKER_IMAGE: ttl.sh/kuksa.val/kuksa-databroker-${{github.sha}}
run: |
${{github.workspace}}/kuksa_databroker/integration_test/run.sh
bom:
name: Bill of Material Check
runs-on: ubuntu-latest
needs: build-container

steps:
- uses: actions/checkout@v3

- name: "Createbom: License check and Dash output generation"
working-directory: ${{github.workspace}}/kuksa_databroker/createbom
run: |
cargo install cargo-license
python3 createbom.py --dash ${{github.workspace}}/dash-databroker-deps ../databroker
- name: Dash license check
uses: eclipse-kuksa/kuksa-actions/check-dash@2
with:
dashinput: ${{github.workspace}}/dash-databroker-deps
16 changes: 7 additions & 9 deletions .github/workflows/kuksa_val_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ concurrency:
cancel-in-progress: true

jobs:
checkrights:
uses: ./.github/workflows/check_push_rights.yml
check_ghcr_push:
uses: eclipse-kuksa/kuksa-actions/.github/workflows/check_ghcr_push.yml@2
secrets: inherit

build:
runs-on: [ self-hosted ]
needs: checkrights
needs: check_ghcr_push

steps:
- uses: actions/checkout@v3
Expand All @@ -45,17 +45,15 @@ jobs:
type=semver,pattern={{major}}
- name: Log in to the Container registry
if: needs.checkrights.outputs.have_secrets == 'true'
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

#push to ghcr if we have rights, AND thisis not a PR (current settings in Eclipse orga do not
#seem to allow us to ever delete pushed images, so try not to push PR images
- name: Build kuksa.val server container and push to ghcr.io
if: ${{ needs.checkrights.outputs.have_secrets == 'true' && github.event_name != 'pull_request' }}
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/build-push-action@v4
with:
platforms: |
Expand All @@ -69,8 +67,8 @@ jobs:
ttl.sh/kuksa.val/kuksa-server-${{github.sha}}
labels: ${{ steps.meta.outputs.labels }}

- name: Build ephemereal kuksa-val docker and push to ttl.sh
if: ${{ needs.checkrights.outputs.have_secrets == 'false' || github.event_name == 'pull_request' }}
- name: Build ephemeral KUKSA Server docker and push to ttl.sh
if: needs.check_ghcr_push.outputs.push == 'false'
uses: docker/build-push-action@v4
with:
platforms: |
Expand Down
Loading

0 comments on commit 811c161

Please sign in to comment.