3

I'm trying to setup CI on Gitlab for Flutter Web. My `. But it does not build the web app.

cirrus.yml` file:

image: cirrusci/flutter:latest

variables:
before_script:
  - flutter channel beta
  - flutter upgrade
  - flutter config --enable-web
  - flutter pub get
pages:
  stage: deploy
  script:
    - flutter build web
    - cp -r build/web public
  artifacts:
    paths:
      - public
  only:
    - live

Pipeline doesn't start automatically. When I ran it manually, I'm getting following error:

No stages / jobs for this pipeline.
Specify variable values to be used in this run. The values specified in CI/CD settings will be used by default.
Subair K
  • 1,760
  • 1
  • 11
  • 31
  • Could you add what your build output is so we can better diagnose what is going wrong? Thanks – James Oct 14 '20 at 09:12
  • Output is any web app that coded in Flutter. – Subair K Oct 14 '20 at 09:23
  • 1
    Just to be sure: In GitLab your CI file has to have the file name `.gitlab-ci.yml` (because you wrote `cirrus.yml`, but maybe that's a typo). If this is the case: Does your pipeline start? What's the pipeline's output of the `deploy` stage? – meliade Oct 14 '20 at 09:48
  • I mean, when your build runs on gitlab, what do the logs say? (And yes please make sure your build actually runs when you push it, as meliade pointed out) – James Oct 14 '20 at 09:55
  • I just edited my question with my result of pipeline runner – Subair K Oct 15 '20 at 04:42
  • How do i add variables in settings? – Subair K Oct 15 '20 at 04:43

0 Answers0