Docker #398
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
on: | ||
schedule: | ||
- cron: '0 6 * * *' # once a day at 6AM UTC (1AM/EST, 2AM/EDT) | ||
workflow_dispatch: | ||
# To test workflow updates you need to work in a branch directly on viamrobotics/rdk | ||
# and tag your working branch instead of @main in any viamrobotics/rdk "uses" below. | ||
# Don't forget to tag back to @main before merge. | ||
jobs: | ||
canon-cache: | ||
name: Build Canon Cache Docker Images | ||
strategy: | ||
matrix: | ||
include: | ||
- arch: [ubuntu-latest] | ||
image: ghcr.io/viamrobotics/canon:amd64 | ||
platform: linux/amd64 | ||
make_target: 'canon-cache-amd64-ci' | ||
- arch: [buildjet-2vcpu-ubuntu-2204-arm] | ||
image: ghcr.io/viamrobotics/canon:arm64 | ||
platform: linux/arm64 | ||
make_target: 'canon-cache-arm64-ci' | ||
runs-on: ${{ matrix.arch }} | ||
container: | ||
image: ${{ matrix.image }} | ||
options: --platform ${{ matrix.platform }} | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Build and Push | ||
run: | | ||
make ${{ matrix.make_target}} | ||
test: | ||
needs: canon-cache | ||
uses: viamrobotics/rdk/.github/workflows/test.yml@main | ||
secrets: | ||
MONGODB_TEST_OUTPUT_URI: ${{ secrets.MONGODB_TEST_OUTPUT_URI }} | ||
antique-cache: | ||
name: Build Antique Cache Docker Images | ||
strategy: | ||
matrix: | ||
include: | ||
- arch: [ubuntu-latest] | ||
image: ghcr.io/viamrobotics/canon:amd64 | ||
platform: linux/amd64 | ||
make_target: 'antique-cache-amd64-ci' | ||
- arch: [buildjet-2vcpu-ubuntu-2204-arm] | ||
image: ghcr.io/viamrobotics/canon:arm64 | ||
platform: linux/arm64 | ||
make_target: 'antique-cache-arm64-ci' | ||
runs-on: ${{ matrix.arch }} | ||
container: | ||
image: ${{ matrix.image }} | ||
options: --platform ${{ matrix.platform }} | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Build and Push | ||
run: | | ||
make ${{ matrix.make_target}} |