-
Notifications
You must be signed in to change notification settings - Fork 25
enh(dependencies): package missing lua dependencies #363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bd4fe3f
enh(dependencies): package missing lua libraries
sdepassio 19cdc21
add lua-openssl
sdepassio 5b6063f
use lua-openssl instead of lua-crypto which is deprecated
sdepassio b93aed6
fix for lua-base64
sdepassio 031b74f
fix for lua-openssl
sdepassio 4e21100
update
sdepassio 5d4e81a
fix + update tests
sdepassio cf9480a
fix lua-openssl test
sdepassio 1eb4daa
updates after review
sdepassio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,202 @@ | ||
| name: lua-base64 | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/lua-base64.yml' | ||
| - '../../dependencies/lua-base64/**' | ||
| push: | ||
| branches: | ||
| - develop | ||
| - master | ||
| paths: | ||
| - '.github/workflows/lua-base64.yml' | ||
| - '../../dependencies/lua-base64/**' | ||
|
sdepassio marked this conversation as resolved.
Outdated
|
||
|
|
||
| jobs: | ||
| dependency-scan: | ||
| uses: centreon/security-tools/.github/workflows/dependency-analysis.yml@main | ||
|
|
||
| get-environment: | ||
| needs: [dependency-scan] | ||
| uses: ./.github/workflows/get-environment.yml | ||
|
|
||
| package: | ||
| needs: [get-environment] | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| distrib: [el8, el9, el10, bullseye, bookworm, trixie, jammy, noble] | ||
| include: | ||
| - package_extension: rpm | ||
| image: packaging-stream-connectors-nfpm-alma8 | ||
| distrib: el8 | ||
| - package_extension: rpm | ||
| image: packaging-stream-connectors-nfpm-alma9 | ||
| distrib: el9 | ||
| - package_extension: rpm | ||
| image: packaging-stream-connectors-nfpm-alma10 | ||
| distrib: el10 | ||
| - package_extension: deb | ||
| image: packaging-stream-connectors-nfpm-bullseye | ||
| distrib: bullseye | ||
| - package_extension: deb | ||
| image: packaging-stream-connectors-nfpm-bookworm | ||
| distrib: bookworm | ||
| - package_extension: deb | ||
| image: packaging-stream-connectors-nfpm-trixie | ||
| distrib: trixie | ||
| - package_extension: deb | ||
| image: packaging-stream-connectors-nfpm-jammy | ||
| distrib: jammy | ||
| - package_extension: deb | ||
| image: packaging-stream-connectors-nfpm-noble | ||
| distrib: noble | ||
|
|
||
| runs-on: ubuntu-24.04 | ||
|
|
||
| container: | ||
| image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}:latest | ||
| credentials: | ||
| username: ${{ secrets.HARBOR_CENTREON_PULL_USERNAME }} | ||
| password: ${{ secrets.HARBOR_CENTREON_PULL_TOKEN }} | ||
|
|
||
| name: package ${{ matrix.distrib }} | ||
|
|
||
| steps: | ||
| - name: Checkout sources | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Checkout base64 sources | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| repository: "iskolbin/lbase64" | ||
| path: "base64-src" | ||
| ref: "v1.5.3" | ||
|
sdepassio marked this conversation as resolved.
Outdated
|
||
|
|
||
| - name: Prepare packaging of lua-base64 | ||
| run: | | ||
| mkdir -p dependencies/lua-base64/lbase64 | ||
| cp base64-src/base64.lua dependencies/lua-base64/lbase64/base64.lua | ||
| shell: bash | ||
|
|
||
| - name: Package | ||
| uses: ./.github/actions/package-nfpm | ||
| with: | ||
| nfpm_file_pattern: "dependencies/lua-base64/packaging/*.yaml" | ||
| distrib: ${{ matrix.distrib }} | ||
| package_extension: ${{ matrix.package_extension }} | ||
| arch: all | ||
| version: "1.5" | ||
| release: "3" | ||
|
sdepassio marked this conversation as resolved.
Outdated
|
||
| commit_hash: ${{ github.sha }} | ||
| cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-lua-base64-${{ matrix.distrib }} | ||
| rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }} | ||
| rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }} | ||
| rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }} | ||
| stability: ${{ needs.get-environment.outputs.stability }} | ||
| artifact_name: "package-lua-base64-${{ matrix.distrib }}" | ||
|
|
||
| test-packages: | ||
| needs: [get-environment, package] | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - package_extension: rpm | ||
| image: almalinux:8 | ||
| distrib: el8 | ||
| - package_extension: rpm | ||
| image: almalinux:9 | ||
| distrib: el9 | ||
| - package_extension: rpm | ||
| image: almalinux:10 | ||
| distrib: el10 | ||
| - package_extension: deb | ||
| image: debian:bullseye | ||
| distrib: bullseye | ||
| - package_extension: deb | ||
| image: debian:bookworm | ||
| distrib: bookworm | ||
| - package_extension: deb | ||
| image: debian:trixie | ||
| distrib: trixie | ||
| - package_extension: deb | ||
| image: ubuntu:jammy | ||
| distrib: jammy | ||
| - package_extension: deb | ||
| image: ubuntu:noble | ||
| distrib: noble | ||
|
|
||
| runs-on: ubuntu-24.04 | ||
| container: | ||
| image: ${{ matrix.image }} | ||
|
|
||
| name: Test lua packages on ${{ matrix.package_extension }} ${{ matrix.distrib }} | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Test packaged libs | ||
| uses: ./.github/actions/test-packages | ||
| with: | ||
| package_extension: ${{ matrix.package_extension }} | ||
| distrib: ${{ matrix.distrib }} | ||
| cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-lua-base64-${{ matrix.distrib }} | ||
| test_type: dependency | ||
|
|
||
| - name: Upload error log | ||
| if: failure() | ||
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | ||
| with: | ||
| name: install_error_log_${{ matrix.distrib }} | ||
| path: install_error_${{ matrix.distrib }}.log | ||
|
|
||
| deliver-rpm: | ||
| if: ${{ contains(fromJson('["unstable", "testing", "stable"]'), needs.get-environment.outputs.stability) }} | ||
| needs: [get-environment, package, test-packages] | ||
| runs-on: ubuntu-24.04 | ||
| strategy: | ||
| matrix: | ||
| distrib: [el8, el9, el10] | ||
| name: deliver ${{ matrix.distrib }} | ||
|
|
||
| steps: | ||
| - name: Checkout sources | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Publish RPM packages | ||
| uses: ./.github/actions/rpm-delivery | ||
| with: | ||
| module_name: lua-base64 | ||
| distrib: ${{ matrix.distrib }} | ||
| artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }} | ||
| cache_key: ${{ github.sha }}-${{ github.run_id }}-rpm-lua-base64-${{ matrix.distrib }} | ||
| stability: ${{ needs.get-environment.outputs.stability }} | ||
|
|
||
| deliver-deb: | ||
| if: ${{ contains(fromJson('["unstable", "testing", "stable"]'), needs.get-environment.outputs.stability) }} | ||
| needs: [get-environment, package, test-packages] | ||
| runs-on: ubuntu-24.04 | ||
| strategy: | ||
| matrix: | ||
| distrib: [bullseye, bookworm, trixie, jammy, noble] | ||
| name: deliver ${{ matrix.distrib }} | ||
|
|
||
| steps: | ||
| - name: Checkout sources | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - name: Publish DEB packages | ||
| uses: ./.github/actions/deb-delivery | ||
| with: | ||
| module_name: lua-tz | ||
|
sdepassio marked this conversation as resolved.
Outdated
|
||
| distrib: ${{ matrix.distrib }} | ||
| artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }} | ||
| cache_key: ${{ github.sha }}-${{ github.run_id }}-deb-lua-base64-${{ matrix.distrib }} | ||
| stability: ${{ needs.get-environment.outputs.stability }} | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.