Install a SSH client in the CI Docker image.
This commit is contained in:
parent
0f0eb0ac3b
commit
1f9860a707
2 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
image: s3lph/matemat-ci:20180711-01
|
image: s3lph/matemat-ci:20180711-02
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
@ -30,7 +30,8 @@ build:
|
||||||
staging:
|
staging:
|
||||||
stage: staging
|
stage: staging
|
||||||
script:
|
script:
|
||||||
- ssh add - <<<"$STAGING_SSH_PRIVATE_KEY"
|
- eval $(ssh-agent -s)
|
||||||
|
- ssh-add - <<<"$STAGING_SSH_PRIVATE_KEY"
|
||||||
- echo "$(git rev-parse HEAD)" | ssh -p 20022 matemat@kernelpanic.lol
|
- echo "$(git rev-parse HEAD)" | ssh -p 20022 matemat@kernelpanic.lol
|
||||||
environment:
|
environment:
|
||||||
name: staging
|
name: staging
|
||||||
|
|
|
@ -5,7 +5,7 @@ RUN useradd -d /home/matemat -m matemat
|
||||||
RUN mkdir -p /var/matemat/db && chown matemat:matemat -R /var/matemat/db
|
RUN mkdir -p /var/matemat/db && chown matemat:matemat -R /var/matemat/db
|
||||||
RUN mkdir -p /var/matemat/upload && chown matemat:matemat -R /var/matemat/upload
|
RUN mkdir -p /var/matemat/upload && chown matemat:matemat -R /var/matemat/upload
|
||||||
RUN apt-get update -qy
|
RUN apt-get update -qy
|
||||||
RUN apt-get install -y --no-install-recommends sudo git docker.io python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
RUN apt-get install -y --no-install-recommends sudo openssh-client git docker.io python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
||||||
RUN pip3 install wheel pycodestyle mypy
|
RUN pip3 install wheel pycodestyle mypy
|
||||||
|
|
||||||
WORKDIR /home/matemat
|
WORKDIR /home/matemat
|
||||||
|
|
Loading…
Reference in a new issue