@alexanderhamren I’m not too used to either.
As I wrote before, I’m setting up to work with the gitlab pipeline.
image: docker:20.10.15
services:
- docker:20.10.15-dind
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
stages:
- test
wordpress:
stage: test
tags:
- tag-runner
before_script:
- apk update
- apk add git
- apk add curl
- mkdir -p /usr/local/lib/docker/cli-plugins
- curl -SL https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose
- chmod a+x /usr/local/lib/docker/cli-plugins/docker-compose
- apk add --update nodejs npm
- apk add nodejs-current npm
- npm i @wordpress/env --save-dev
script:
- npm run wp-env destroy && npm run wp-env start
only:
- web
artifacts:
when: always
name: "results"
paths:
- ./
Here are the settings I wrote.
I’m still having issues, wp-env can’t connect to the database and start.