Skip to content

CI

CI #11

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
schedule:
- cron: '0 0 * * SUN'
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3.3.0
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v2.1.0
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2.2.1
- name: Build and push bridge-device-interface
uses: docker/build-push-action@v3.3.0
with:
context: .
push: true
platforms: linux/arm64,linux/arm/v7
tags: |
${{ env.REGISTRY }}/lorabridge2/bridge-device-interface:latest
cache-from: type=registry,ref=${{ env.REGISTRY }}/lorabridge2/bridge-device-interface:latest
cache-to: type=inline