From 3a8da5990c9801573dabba91f4b7556ef7999fd0 Mon Sep 17 00:00:00 2001 From: "k.koide" Date: Wed, 10 Jul 2024 11:02:57 +0900 Subject: [PATCH] push only gcc images --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d971c71..e01adb14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,11 +38,11 @@ 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 }}.${{ matrix.DISTRO.suffix }} 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') }}