GithubHelp home page GithubHelp logo

ohdearapp / gitlab-ci-pipeline-for-laravel Goto Github PK

View Code? Open in Web Editor NEW
330.0 330.0 107.0 32 KB

A Gitlab CI/CD pipeline optimized for use with Laravel applications

Home Page: https://ohdear.app

gitlab-ci-pipeline-for-laravel's People

Contributors

freekmurze avatar gil-1 avatar mattiasgeniar avatar thijsvdanker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitlab-ci-pipeline-for-laravel's Issues

Pipeline Error (db-seed)

Im getting an error on the build for seeding:
9 $ mysql --version 30 mysql Ver 15.1 Distrib 10.3.18-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 31 $ php artisan migrate:fresh --seed 32 In Connection.php line 669: 33 34 SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.17.0.4' (using pa 35 ssword: YES) (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE') 36 37 In Connector.php line 70: 38 39 SQLSTATE[HY000] [1045] Access denied for user 'root'@'172.17.0.4' (using pa 40 ssword: YES) 41 42 Uploading artifacts... 00:03 43 storage/logs: found 3 matching files 44 WARNING: db.sql: no matching files 45 Uploading artifacts to coordinator... ok id=391733588 responseStatus=201 Created token=xvYwHHTo 46 ERROR: Job failed: exit code 1

Recommended image for PHP 7.4?

Hi, have you guys upgraded to PHP 7.4 yet? We're using the image edbizarro/gitlab-ci-pipeline-php:7.3 but it seems that the author is still having problems with his PHP 7.4 build. Would you have any recommendations for a PHP 7.4 image?

Thanks!

Composer v1

Hi, today I wanted to run the pipeline and it failed at the security stage.
I found out that the problem was caused by an old composer version.

Do you maybe have an idea how to solve this?
I took a look at the repo of the used plugin and it turned out that it isn't maintained anymore and got replaced by fabpot/local-php-security-checker.

Maybe it would be a good idea to update the pipeline accordingly?

I tried to do it by fetching the binary from the new go version but sadly the binary failed to execute on my local machine everytime I tried to run it.

sensiolabs:
  stage: security
  script:
    - 'curl -s https://api.github.com/repos/fabpot/local-php-security-checker/releases/latest | grep "browser_download_url.*linux_amd64" | cut -d: -f 2,3 | tr -d \" | wget -o local-php-security-checker -qi -'
    - chmod +x local-php-security-checker
    - ./local-php-security-checker
  dependencies: []
  cache:
    paths:
      - security-checker/

Regards,
Alex

Upgrade to Mysql 8.0

Hello,

I know it's not really an issue but I'm tryig to add mysql8.0 to the ci config and I have a hard time doing it. I created a post on the forum of Gitlab but no answer so far.

Do you have some idea of what I could do to achieve it ?
With my try, mysql and php are not working and I don't know how to find a solution.

I explained everything in the post here :
https://forum.gitlab.com/t/gitlab-ci-php7-3-mysql8-0-result-with-command-not-found/29755

Any help would be greatly appreciated.

Thanks !

Pipeline error (db-seed)

Getting
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE') running php artisan migrate:fresh --seed.
That's strange cause I'm using the container service name as host. Any idea?

Cant proceed, error on uploading artifacts

I tried to use this ci file for my laravel app, but stuck when pushing to gitlab .Here is the specific errors.
$ php -v
0:00 bash: line 87: php: command not found
Uploading artifacts...
00:00 Runtime platform arch=amd64 os=linux pid=6901 revision=f100a208 version=11.6.0
WARNING: vendor/: no matching files
WARNING: .env: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.