drone. Trying $(expr) regex approach in .drone.yml.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Alexey Skobkin 2022-03-29 16:58:26 +03:00
parent d98394ca25
commit 54b8827980

View file

@ -6,5 +6,5 @@ steps:
- name: validate - name: validate
image: 'docker/compose:1.29.2' image: 'docker/compose:1.29.2'
commands: commands:
- for DIR in */ ; do if [[ $DIR =~ ^_ ]] ; then continue; fi && test -f $DIR/.env.dist && cp $DIR/.env.dist $DIR/.env ; done - for DIR in */ ; do if [[ $(expr match "$DIR" '^_') != 0 ]] ; then continue; fi && test -f $DIR/.env.dist && cp $DIR/.env.dist $DIR/.env ; done
- for DIR in */ ; do if [[ $DIR =~ ^_ ]] ; then continue; fi && echo $DIR && cd $DIR && docker-compose config && cd .. ; done - for DIR in */ ; do if [[ $(expr match "$DIR" '^_') != 0 ]] ; then continue; fi && echo $DIR && cd $DIR && docker-compose config && cd .. ; done