Skip to content

Add NOTES.md with comment about DDS log levels. #44

Add NOTES.md with comment about DDS log levels.

Add NOTES.md with comment about DDS log levels. #44

name: Build and Push Docker Images
on:
push:
pull_request:
workflow_dispatch:
permissions:
id-token: write
contents: read
packages: write
env:
URL: ghcr.io/${{ github.repository }}
jobs:
build-and-push:
permissions:
id-token: write
contents: read
packages: write
runs-on: ubuntu-latest
strategy:
matrix:
container:
- context: .
file: .devcontainer/Dockerfile
name: dev
platforms: linux/arm64
- context: unitree-client
file: unitree-client/Dockerfile
name: client
target: runtime
platforms: linux/arm64
- context: coordination-server
file: coordination-server/Dockerfile
name: server
platforms: linux/amd64
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
lfs: true
- run: git lfs pull
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.URL }}.${{ matrix.container.name}}
flavor: |
latest=true
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=sha
- name: QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
driver-opts: image=moby/buildkit:latest
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: ${{ matrix.container.context }}
file: ${{ matrix.container.file }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ matrix.container.platforms }}
target: ${{ matrix.container.target }}
push: true
pull: true
cache-from: |
type=gha,scope=${{ matrix.container.name }}
type=registry,ref=${{ env.URL }}.${{ matrix.container.name }}:cache
cache-to: type=gha,mode=max,scope=${{ matrix.container.name }}