diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d971c71..1bdd8aba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,11 +38,25 @@ jobs: password: ${{ secrets.DOCKER_TOKEN }} - name: Docker build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: - tag: koide3/gtsam_points:${{ matrix.DISTRO.ubuntu }}.${{ matrix.DISTRO.suffix }} + tags: koide3/gtsam_points:${{ matrix.DISTRO.ubuntu }} file: ${{github.workspace}}/docker/ubuntu/Dockerfile.${{ matrix.DISTRO.suffix }} build-args: | BASE_IMAGE=koide3/gtsam_docker:${{ matrix.DISTRO.ubuntu }} context: . - push: ${{ github.event_name != 'push' }} + push: ${{ github.event_name == 'push' && contains(matrix.DISTRO.suffix, 'gcc') }} + + dispatch: + needs: build + strategy: + matrix: + repo: ['koide3/glim'] + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.GH_PAT }} + repository: ${{ matrix.repo }} + event-type: trigger-event \ No newline at end of file