Skip to content

Commit

Permalink
Update images to fix whole pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MSECode committed Jan 30, 2024
1 parent 6e038c7 commit 1087a7d
Show file tree
Hide file tree
Showing 91 changed files with 760 additions and 222 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,24 @@ jobs:
name: build devel and master images
runs-on: ubuntu-latest
steps:
- name: Get Token
id: get_workflow_token
uses: tibdex/github-app-token@v2
with:
private_key: ${{ secrets.ICUB_TECH_IIT_APP_KEY }}
app_id: ${{ secrets.ICUB_TECH_IIT_APP_ID }}
installation_retrieval_mode: repository
installation_retrieval_payload: icub-tech-iit/code

- name: Checkout docker-deployment-images
uses: actions/checkout@v4

- name: Repository Dispatch for building images
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
env:
GITHUB_APPS_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_APPS_TOKEN }}
repository: ${{ github.repository }}
event-type: cron_trigger
client-payload: '{"version": "master", "type": "cron_trigger", "img_list": "superbuild superbuild-tensorflow-cpu superbuild-tensorflow-gpu superbuild-icubhead superbuild-icubhead-withuser superbuild-nvidia superbuild-nvidia-10.1 superbuild-gazebo blender gazebo superbuild-ros2"}'
client-payload: '{"version": "master", "type": "cron_trigger", "img_list": "superbuild superbuild-icubhead superbuild-icubhead-withuser superbuild-gazebo superbuild-ros2"}'
11 changes: 6 additions & 5 deletions .github/workflows/onCodeChanges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,11 @@ jobs:

##################### Command to set the tag for the date argument ######################
- name: set date argument for Docker build
id: get_date
run: |
echo "$(date +'%d/%m/%Y')" > DATE_
echo "metadata=$(cat DATE_)" > DATE_TAG
echo $(cat DATE_TAG)
echo $(cat DATE_TAG) >> $GITHUB_OUTPUT
##################### Here we check the release version and replace Custom with stable only for the image name ######################
- name: Get release / master version
Expand Down Expand Up @@ -536,7 +537,7 @@ jobs:

# - name: Trigger testing pipeline for source image
# if: steps.build-sources.outcome == 'success' && steps.push-sources.outcome == 'success' && steps.get_args.outputs.demos_flag_output == 'true' && ! cancelled()
# uses: peter-evans/repository-dispatch@v1
# uses: peter-evans/repository-dispatch@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# repository: {{ }}
Expand All @@ -545,7 +546,7 @@ jobs:

# - name: Trigger testing pipeline for binary image
# if: steps.build-binaries.outcome == 'success' && steps.push-binaries.outcome == 'success' && steps.get_args.outputs.demos_flag_output == 'true' && ! cancelled()
# uses: peter-evans/repository-dispatch@v1
# uses: peter-evans/repository-dispatch@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# repository: {{ }}
Expand Down Expand Up @@ -799,7 +800,7 @@ jobs:
# this step ensures that the children are built with the "release" version, which is used when the "repository_trigger" is sent
- name: Repository Dispatch for release
if: github.event.client_payload.type == 'repository_trigger'
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ env.REPOSITORY_NAME }}
Expand All @@ -809,7 +810,7 @@ jobs:
# in the case where we are building "master" versions, we need to send a trigger that build only master, e.g.: "cron_trigger"
- name: Repository Dispatch for master
if: github.event.client_payload.type != 'repository_trigger'
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ env.REPOSITORY_NAME }}
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Get Token
id: get_workflow_token
uses: tibdex/github-app-token@v2
with:
private_key: ${{ secrets.ICUB_TECH_IIT_APP_KEY }}
app_id: ${{ secrets.ICUB_TECH_IIT_APP_ID }}
installation_retrieval_mode: repository
installation_retrieval_payload: icub-tech-iit/code
- name: Checkout code
uses: actions/checkout@v4
- name: Get Version
Expand Down Expand Up @@ -66,7 +74,7 @@ jobs:
#prerelease: false

# - name: Repository Dispatch for appsAway
# uses: peter-evans/repository-dispatch@v1
# uses: peter-evans/repository-dispatch@v3
# env:
# GITHUB_APPS_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
# with:
Expand All @@ -76,11 +84,11 @@ jobs:
# client-payload: '{"version": "${{ github.event.client_payload.version }}"}'

- name: Repository Dispatch for building images
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
env:
GITHUB_APPS_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_APPS_TOKEN }}
repository: ${{ env.REPOSITORY_NAME }}
event-type: repository_trigger
client-payload: '{"version": "${{ steps.get_version.outputs.version }}", "type": "repository_trigger", "img_list": "superbuild superbuild-icubhead superbuild-icubhead-withuser superbuild-gazebo superbuild-ros2"}'
Expand Down
Loading

0 comments on commit 1087a7d

Please sign in to comment.