Skip to content

push only gcc images #44

push only gcc images

push only gcc images #44

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
paths-ignore: '**.md'
pull_request:
branches: [ master ]
paths-ignore: '**.md'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
DISTRO: [
{ "ubuntu": "jammy", "suffix": "gcc" },
{ "ubuntu": "jammy", "suffix": "llvm" },
{ "ubuntu": "jammy_cuda12.2", "suffix": "gcc.cuda" },
{ "ubuntu": "jammy_cuda12.2", "suffix": "llvm.cuda" },
{ "ubuntu": "noble", "suffix": "gcc" },
{ "ubuntu": "noble", "suffix": "llvm" }
]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Docker login
continue-on-error: true
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Docker build
uses: docker/build-push-action@v2
with:
tag: 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' && contains(${{ matrix.DISTRO.suffix }}, 'gcc') }}

Check failure on line 48 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 48, Col: 17): Unexpected symbol: '${{'. Located at position 41 within expression: github.event_name == 'push' && contains(${{ matrix.DISTRO.suffix