Giter Club home page Giter Club logo

ddev-gitlab-ci's Introduction

DDEV GitLab CI - Docker in Docker (dind)

This image is most likely to be used within the GitLab Runner. As of now it only tested it on gitlab.com

GitLab CI example: .gitlab-ci.yml

Workflow - Image build

Build the image

./build.sh -v <version, at least major.minor> -p

Available options:

  • v - DDEV version e.g. 'v1.23.1'
  • l - Load the image (--load)
  • p - Push the image (--push)
  • x - Build multi-arch image (--platform linux/amd64,linux/arm64)

Version to tags

Command Tags to be created
./build.sh -v v1.22 v1.22, v1.22.x (latest bugfix)
./build.sh -v v1.22.5 v1.22.5
./build.sh -v v1.23 v1.23, v1.23.x (latest bugfix)
... ...

Run tests locally

Requires bats-core and yq.

DDEV_VERSION=v1.23.3 bash bats tests

ddev-gitlab-ci's People

Contributors

ochorocho avatar

Watchers

 avatar  avatar  avatar  avatar

ddev-gitlab-ci's Issues

Verify the job output

GitLab Job log:
https://gitlab.com/ochorocho/typo3-distribution/-/jobs/7040611676

Possible errors:

app.FindContainerByType(web) failed
app.FindContainerByType(web) failed

Playwright seems to complain about the invalid ssl cert:

  1) [chromium] โ€บ backend.spec.js:4:1 โ€บ Backend login โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
    Error: page.goto: net::ERR_CERT_AUTHORITY_INVALID at https://typo3-distribution.ddev.site/typo3

Test the image

The image should have tests prior pushing it to the server.
Maybe use bats like it is used in ddev addons.

Add caching to gitlab-ci example

Caching the downloaded docker images on a project base would make sense to speed up builds.
Currently, all images are download on each and every job run.

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.