Bläddra i källkod

add dockerfile and update gitlab ci

SBird1337 6 år sedan
förälder
incheckning
8764fac02c
2 ändrade filer med 16 tillägg och 0 borttagningar
  1. 7
    0
      .gitlab-ci.yml
  2. 9
    0
      Dockerfile

+ 7
- 0
.gitlab-ci.yml Visa fil

@@ -11,6 +11,13 @@ build-sots:
11 11
     - web
12 12
     - triggers
13 13
   script:
14
+    - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
15
+
16
+    ##
17
+    ## Run ssh-agent (inside the build environment)
18
+    ##
19
+    - eval $(ssh-agent -s)
20
+
14 21
     - echo "Building Pokémon SotS"
15 22
     - apt-get install -qq -y binutils-arm-none-eabi
16 23
     - make -j4 all

+ 9
- 0
Dockerfile Visa fil

@@ -0,0 +1,9 @@
1
+FROM debian:stretch
2
+
3
+RUN apt-get update \
4
+    && DEBIAN_FRONTEND=noninteractive apt-get -y install apt-transport-https dirmngr build-essential git binutils-arm-none-eabi \
5
+    && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
6
+    && echo "deb https://download.mono-project.com/repo/debian stable-stretch main" > /etc/apt/sources.list.d/mono-official-stable.list \
7
+    && apt-get update \
8
+    && apt-get install -y mono-devel \
9
+    && rm -rf /var/lib/apt/lists/* \