snorklerjoe/CubeServer

View on GitHub
.github/workflows/docker-bake.yml

Summary

Maintainability
Test Coverage
name: Docker Bake CI

on:
  push:
    tags:
      "v*"

jobs:

  build:

    runs-on: ubuntu-latest
    steps:
    - name: Check out the repo
      uses: actions/checkout@v3

    - name: Log in to Docker Hub
      uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
      with:
        username: ${{ secrets.DOCKER_USERNAME }}
        password: ${{ secrets.DOCKER_PASSWORD }}
    
    - name: Configure
      run: ./configure

    - name: buildenv
      run: docker buildx create --use

    - name: bake
      run: docker buildx bake -f docker-compose.yml -f .env --set *.platform=linux/arm64,linux/amd64 --push