From f3d12e364fa0d667c882ec8f6c9bb5eaa0dc7842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Fr=C3=B6hlich?= Date: Mon, 11 Mar 2024 08:07:38 +0100 Subject: [PATCH] Add ref for checkout for scheduled build (#461) --- .github/workflows/humble-docker-build.yaml | 4 +++- .github/workflows/iron-docker-build.yaml | 24 +++++++++++++++++++++ .github/workflows/rolling-docker-build.yaml | 24 +++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/iron-docker-build.yaml create mode 100644 .github/workflows/rolling-docker-build.yaml diff --git a/.github/workflows/humble-docker-build.yaml b/.github/workflows/humble-docker-build.yaml index d9130d3eb..ad9b2b57b 100644 --- a/.github/workflows/humble-docker-build.yaml +++ b/.github/workflows/humble-docker-build.yaml @@ -18,5 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: humble - name: Build the Docker image - run: docker build . --file Dockerfile/Dockerfile --tag ros2_control_demos_humble + run: docker build --file Dockerfile/Dockerfile --tag ros2_control_demos_humble --build-arg ROS_DISTRO=humble . diff --git a/.github/workflows/iron-docker-build.yaml b/.github/workflows/iron-docker-build.yaml new file mode 100644 index 000000000..c1f89dc4d --- /dev/null +++ b/.github/workflows/iron-docker-build.yaml @@ -0,0 +1,24 @@ +name: Build Iron Dockerfile +# description: builds the dockerfile contained within the repo + +on: + pull_request: + branches: + - iron + push: + branches: + - iron + schedule: + # Run every morning to detect broken dependencies + - cron: '50 1 * * *' + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: iron + - name: Build the Docker image + run: docker build --file Dockerfile/Dockerfile --tag ros2_control_demos_iron --build-arg ROS_DISTRO=iron . diff --git a/.github/workflows/rolling-docker-build.yaml b/.github/workflows/rolling-docker-build.yaml new file mode 100644 index 000000000..02e234a6d --- /dev/null +++ b/.github/workflows/rolling-docker-build.yaml @@ -0,0 +1,24 @@ +name: Build Rolling Dockerfile +# description: builds the dockerfile contained within the repo + +on: + pull_request: + branches: + - master + push: + branches: + - master + schedule: + # Run every morning to detect broken dependencies + - cron: '50 1 * * *' + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: master + - name: Build the Docker image + run: docker build --file Dockerfile/Dockerfile --tag ros2_control_demos_rolling --build-arg ROS_DISTRO=rolling .