Skip to content

Commit

Permalink
Add ref for checkout for scheduled build (#461)
Browse files Browse the repository at this point in the history
(cherry picked from commit a6374dd)

# Conflicts:
#	.github/workflows/iron-docker-build.yaml
#	.github/workflows/rolling-docker-build.yaml
  • Loading branch information
christophfroehlich authored and mergify[bot] committed Mar 11, 2024
1 parent 8e182fd commit 420c59f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/humble-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
24 changes: 24 additions & 0 deletions .github/workflows/iron-docker-build.yaml
Original file line number Diff line number Diff line change
@@ -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 .
24 changes: 24 additions & 0 deletions .github/workflows/rolling-docker-build.yaml
Original file line number Diff line number Diff line change
@@ -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 .

0 comments on commit 420c59f

Please sign in to comment.