Now with build context
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Erki 2022-01-23 17:04:51 +02:00
parent 55214df674
commit 308d566942
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ steps:
- name: build cpp-ubuntu
image: docker
commands:
- docker build -t erki/cpp-ubuntu:latest - < cpp-ubuntu.Dockerfile
- docker build -t erki/cpp-ubuntu:latest -f cpp-ubuntu.Dockerfile .
volumes:
- name: docker_socket
path: /var/run/docker.sock
@ -14,7 +14,7 @@ steps:
- name: build jenkins-ubuntu
image: docker
commands:
- docker build -t erki/jenkins-ubuntu:latest - < jenkins-ubuntu.Dockerfile
- docker build -t erki/jenkins-ubuntu:latest -f jenkins-ubuntu.Dockerfile .
volumes:
- name: docker_socket
path: /var/run/docker.sock

View File

@ -8,7 +8,7 @@ RUN mkdir -p /var/run/sshd
RUN adduser --quiet jenkins
RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
COPY jenkins-ubuntu/.ssh/authorized_keys /home/jenkins/.ssh/authorized_keys
COPY ./jenkins-ubuntu/.ssh/authorized_keys /home/jenkins/.ssh/authorized_keys
RUN chown -R jenkins:jenkins /home/jenkins/.ssh/