Skip to content

Commit

Permalink
CI administration improvements (#13)
Browse files Browse the repository at this point in the history
* Cleanup ci-admin code

* Use PAT to perform CI administration

* Use correct path for RTI license
  • Loading branch information
asorbini authored Apr 18, 2024
1 parent 52d08ba commit ba3eb9c
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 305 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_deb_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
base_image=ghcr.io/mentalsmash/uno-ci-base-tester:${deb_builder_tag}
;;
false)
rti_license_file=${{ github.workspace }}/src/uno-ci/resource/rti/rti_license.dat
rti_license_file=${{ github.workspace }}/src/uno-ci/docker/base-tester/resource/rti/rti_license.dat
base_image=${{ inputs.base-tag }}
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_install_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
if: inputs.install-rti-license
run: |
. venv/bin/activate
RTI_LICENSE_FILE=src/uno-ci/resource/rti/rti_license.dat \
RTI_LICENSE_FILE=src/uno-ci/docker/base-tester/resource/rti/rti_license.dat \
UNO_IMAGE=${{inputs.tag}} \
PLATFORM=${{inputs.platform}} \
FORCE_PULL=yes \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
env:
IN_DOCKER: y
FIX_DIR: ${{ github.workspace }}
RTI_LICENSE_FILE: ${{ github.workspace }}/src/uno-ci/resource/rti/rti_license.dat
RTI_LICENSE_FILE: ${{ github.workspace }}/src/uno-ci/docker/base-tester/resource/rti/rti_license.dat
TEST_DATE: ${{ needs.config.outputs.TEST_DATE }}
TEST_IMAGE: ${{ needs.config.outputs.TEST_IMAGE }}
TEST_RELEASE: y
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pull_request_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
-N ${{ github.event_name == 'pull_request' && github.event.pull_request.number || inputs.pr-number }} \
${{ (github.event_name == 'pull_request' && github.event.pull_request.merged || inputs.pr-merged) && '-m' || '' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Changes to actions (e.g. delete workflow runs) require a PAT, and don't work with the GITHUB_TOKEN
# see https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#delete-a-workflow-run
GH_TOKEN: ${{ secrets.UNO_CI_ADMIN_PAT }}
ADMIN_IMAGE: ghcr.io/mentalsmash/uno-ci-admin:latest

Loading

0 comments on commit ba3eb9c

Please sign in to comment.