Browse Source

buster ci

Liam Hurwitz 2 years ago
parent
commit
df14d7b3aa
2 changed files with 10 additions and 3 deletions
  1. 7 0
      .gitlab-ci.yml
  2. 3 3
      Dockerfile

+ 7 - 0
.gitlab-ci.yml

@@ -36,10 +36,16 @@
 image: gitlab.informatik.uni-bremen.de:5005/turingcomplete/freedombone:latest
 
 stages:
+  - prepare
   - build
   - test
   - deploy
 
+git update:
+  stage: prepare
+  script: 
+    - git pull --rebase origin stretch && git checkout buster
+
 build amd64:
   stage: build
   script:
@@ -141,3 +147,4 @@ deploy1:
   # TODO: Decide where to host images, and then push artefacts to website
   # Hosting at Uni Bremen should be no problem. TODO: Ask about logging
     - echo "Do your deploy here"
+

+ 3 - 3
Dockerfile

@@ -26,7 +26,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 # Set the base image to debian
 
-FROM debian:buster
+FROM debian:stretch
 
 # File Author / Maintainer
 MAINTAINER Liam Hurwitz
@@ -50,7 +50,7 @@ RUN apt-get install git build-essential dialog openssh-client -y
 ##
 RUN git clone https://gitlab.informatik.uni-bremen.de/turingcomplete/freedombone.git
 RUN cd freedombone &&\
-        git checkout buster &&\
+        git checkout stretch &&\
         make install
 
 ##
@@ -63,4 +63,4 @@ RUN echo "Reached Build \nInstalling Packages" &&\
 RUN export TERMINFO=/usr/lib/terminfo
 
 USER root
-CMD /bin/bash
+CMD /bin/bash