docker build nightly #149
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 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 |