Skip to content

docker build nightly #158

docker build nightly

docker build nightly #158

Workflow file for this run

name: docker build nightly
on:
repository_dispatch:
workflow_dispatch:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build docker
env:
docker_repo: opbfdev
image_name: bfdev
tag: latest
platform: linux/arm64,linux/amd64,linux/386,linux/arm/v7
run: |
docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWD }}
docker buildx create --use --platform=$platform --name multi-platform-builder
docker buildx inspect --bootstrap
docker buildx build . --platform=$platform --tag $docker_repo/$image_name:$tag --push