Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate Cross with Gitlab CI? #1507

Closed
hanusek opened this issue Jun 4, 2024 · 2 comments
Closed

How to integrate Cross with Gitlab CI? #1507

hanusek opened this issue Jun 4, 2024 · 2 comments

Comments

@hanusek
Copy link

hanusek commented Jun 4, 2024

Hello.
I use docker runner in Gitlab CI. I would like to use Cross in CI.
How do it?

@Emilgardis
Copy link
Member

@t-moe
Copy link

t-moe commented Jul 22, 2024

Is it possible that the linked FAQ is out of date?

i always get

Error:
0: no container engine found

here my gitlab ci conf

image: "rust:latest"
build:raspy:cfw:
  stage: build
  variables:
    DOCKER_HOST: tcp://docker:2375/
    DOCKER_DRIVER: overlay2
    CROSS_REMOTE: 1

    DOCKER_TLS_CERTDIR: ""
    FF_NETWORK_PER_BUILD: "true" # doesnt matter if i add this or not
  services:
    - docker:18.09-dind # doesnt matter if i use latest version or 18.09
  before_script:
    - cargo install cross

  script:
    - cross build

or do i need to run a different image? (one that replaces cross with some wrapper script?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants