Workflow (by @dependabot[bot] via pull_request) #175
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
| --- | |
| # SPDX-FileCopyrightText: (C) 2025 Intel Corporation | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: "IDV Services: Create Package" | |
| run-name: "Workflow (by @${{ github.actor }} via ${{ github.event_name }})" | |
| # Only run at most 1 workflow concurrently per PR, unlimited for branches | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "*" | |
| permissions: | |
| contents: read | |
| jobs: | |
| idv-services: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Code | |
| # [email protected] released 2024 October 23. SHA pinned for enhanced security | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 # All history, not just latest commit | |
| ref: ${{ github.event.pull_request.head.sha }} # Check out the actual commit, not a fake merge commit | |
| - name: Setup Tools & Common Variables | |
| uses: ./.github/actions/setup-tools | |
| - name: create idv-services release tarball | |
| working-directory: idv-services | |
| run: | | |
| mkdir idv-services-artifacts | |
| cd idv-services-artifacts | |
| ls -hal | |
| mkdir intel-idv-services-$EDV_VERSION | |
| mkdir -p intel-idv-services-$EDV_VERSION/init | |
| mkdir -p intel-idv-services-$EDV_VERSION/launcher | |
| cp ../autologin.conf intel-idv-services-$EDV_VERSION | |
| cp ../etc/systemd/user/*.service intel-idv-services-$EDV_VERSION | |
| cp ../launcher/*.* intel-idv-services-$EDV_VERSION/launcher | |
| cp ../init/*.* intel-idv-services-$EDV_VERSION/init | |
| ls -hal | |
| tar cvzf intel-idv-services-$EDV_VERSION.tar.gz intel-idv-services-$EDV_VERSION | |
| ls -hal | |
| - name: Upload idv-services release tarball | |
| # [email protected] released 2025 March 19. SHA pinned for enhanced security | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | |
| with: | |
| name: idv-services artifacts | |
| path: | | |
| ls -hal | |
| idv-services/idv-services-artifacts/intel-idv-services-${{ env.EDV_VERSION }}.tar.gz |