commit 6a2673744f77aef372ee7a9c7c6486d2678b1df6 Author: Wolfgang Hottgenroth Date: Sat Feb 16 23:31:22 2019 +0100 initial diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2db5f59 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: docker:stable + +stages: + - build + +variables: + IMAGE_NAME: registry.gitlab.com/wolutator/build-env-msp430 + +build: + stage: build + tags: + - hottis + - linux + - docker + script: + - VERSION=`cat VERSION` + - echo "Version is $VERSION" + - docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION . + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker push $IMAGE_NAME:latest + - docker push $IMAGE_NAME:$VERSION + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a11d8d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM registry.gitlab.com/wolutator/base-build-env:latest + +MAINTAINER Wolfgang Hottgenroth + + +RUN \ + apt update && \ + apt install -y msp430-libc && \ + apt install -y binutils-msp430 && \ + apt install -y gcc-msp430 && \ + rm -rf /var/lib/apt/lists/* + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..8acdd82 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.0.1