Skip to content

Commit

Permalink
push only gcc images
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Jul 10, 2024
1 parent bafd4e3 commit 191ed30
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 191ed30

Please sign in to comment.