Skip to content

Build Docker Image Schedule #549

Build Docker Image Schedule

Build Docker Image Schedule #549

name: Build Docker Image Schedule
on:
schedule:
- cron: '0 0 * * *'
jobs:
build-people:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: "dev"
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
working-directory: docker
run: vcs import < thirdparty.repos
- name: Prebuild images
run: ./prebuild-docker.sh cuda
- name: Build images
shell: bash
run: ./build-docker.sh people
- name: Get short SHA
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Upload Images
shell: bash
env:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
SHORT_SHA: ${{ steps.vars.outputs.sha_short }}
run: |
docker login -u daisukesato80 -p "$DOCKERHUB_TOKEN"
./manage-docker-image.sh -a tag -i people -o cmucal -t nightly
./manage-docker-image.sh -a push -i people -o cmucal -t nightly
build-ros1:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: "dev"
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
working-directory: docker
run: vcs import < thirdparty.repos
- name: Prebuild images
run: ./prebuild-docker.sh ros1
- name: Build images
shell: bash
run: ./build-docker.sh ros1 localization people-nuc wireless
- name: Get short SHA
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Upload Images
shell: bash
env:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
SHORT_SHA: ${{ steps.vars.outputs.sha_short }}
run: |
docker login -u daisukesato80 -p "$DOCKERHUB_TOKEN"
./manage-docker-image.sh -a tag -i "ros1 localization people-nuc ble_scan" -o cmucal -t nightly
./manage-docker-image.sh -a push -i "ros1 localization people-nuc ble_scan" -o cmucal -t nightly
build-ros2:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: "dev"
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
working-directory: docker
run: vcs import < thirdparty.repos
- name: Prebuild images
run: ./prebuild-docker.sh ros2
- name: Build images
shell: bash
run: ./build-docker.sh ros2 bridge
- name: Get short SHA
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Upload Images
shell: bash
env:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
SHORT_SHA: ${{ steps.vars.outputs.sha_short }}
run: |
docker login -u daisukesato80 -p "$DOCKERHUB_TOKEN"
./manage-docker-image.sh -a tag -i "ros2 bridge" -o cmucal -t nightly
./manage-docker-image.sh -a push -i "ros2 bridge" -o cmucal -t nightly