Update .gitlab-ci.yml file
This commit is contained in:
parent
5ba4002f93
commit
c3a2da1d87
@ -5,16 +5,22 @@ stages:
|
||||
before_script:
|
||||
- apt-get -y update
|
||||
- apt-get -y install git
|
||||
- apt-get -y install docker
|
||||
- apt-get -y install ca-certificates curl gnupg lsb-release
|
||||
- curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
|
||||
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
- apt-get -y update
|
||||
- apt-get -y install docker-ce docker-ce-cli containerd.io
|
||||
- docker --version
|
||||
# configure SSH keys
|
||||
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
|
||||
- eval $(ssh-agent -s)
|
||||
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||||
- mkdir -p ~/.ssh
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
|
||||
|
||||
docker-compose-test:
|
||||
image: debian:bullseye
|
||||
image: docker
|
||||
stage: test
|
||||
rules:
|
||||
- changes:
|
||||
@ -23,8 +29,8 @@ docker-compose-test:
|
||||
- jafner-tools/config/
|
||||
script:
|
||||
- docker --version
|
||||
- find ~+ -type f -name docker-compose.yml > composes.txt
|
||||
- find ~+/server/config/minecraft/ -type f -name *.yml >> composes.txt
|
||||
- find ~ -type f -name docker-compose.yml > composes.txt
|
||||
- find ~/server/config/minecraft/ -type f -name *.yml >> composes.txt
|
||||
- for file in `cat composes.txt`; do docker compose -f $file config; done
|
||||
- rm composes.txt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user