Skip to content

Commit

Permalink
Add GitHub Actions workflow for daily and push-triggered Docker build…
Browse files Browse the repository at this point in the history
… and push

This workflow runs automatically at 3:33 AM UTC daily and on every push to the master branch, it:
- Executes the `build.bash` script to build the Docker image.
- Executes the `push.sh` script to push the image to the registry.
  • Loading branch information
JVALPASS committed Jan 22, 2025
1 parent e217fa8 commit e6ff3d4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Push (xbot2_docker-noble-ROS2)

on:
push:
branches:
- master
schedule:
# Run the workflow once a day at midnight UTC
- cron: '33 3 * * *'

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run build.bash
run: ./build.bash

- name: Run push.sh
run: ./push.sh

0 comments on commit e6ff3d4

Please # to comment.