Skip to content
Snippets Groups Projects
Commit f10563ed authored by Erick Hitter's avatar Erick Hitter
Browse files
parent c47ec0b2
Branches
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ before_script:
# TESTS
#
lint_dockerfile:
lint-dockerfile:
stage: test
image: hadolint/hadolint:latest-debian
before_script:
......@@ -19,6 +19,14 @@ lint_dockerfile:
script:
- find . -name "Dockerfile" -execdir hadolint {} \;
lint-shell-script:
stage: test
image: koalaman/shellcheck-alpine:latest
before_script:
- shellcheck -V
script:
- find . -name "*.sh" -exec shellcheck {} \;
#
# IMAGE BUILDS/PUSHES
#
......@@ -41,6 +49,24 @@ build-golang-dev:
except:
- master
# Debian Jessie builds
build-debian-jessie-build-master:
stage: deploy
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/debian:jessie" ./debian/jessie
- docker push "$CI_REGISTRY_IMAGE/debian:jessie"
only:
- master
when: manual
build-debian-jessie-build-dev:
stage: deploy
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/debian:jessie-dev" ./debian/jessie
- docker push "$CI_REGISTRY_IMAGE/debian:jessie-dev"
except:
- master
# PHP 7.3
build-php-7.3-master:
stage: deploy
......
FROM debian:jessie
LABEL maintainer="ethitter"
LABEL version="1.0"
RUN echo "deb http://security.debian.org/ jessie/updates main" >> /etc/apt/sources.list
RUN apt-get update \
&& apt-get -yqqf --no-install-recommends install \
apt-transport-https \
lsb-release \
ca-certificates \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -ssL -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
git \
dh-make \
build-essential \
autoconf \
autotools-dev \
libpcre3 \
libpcre3-dev \
libz-dev \
gnupg \
libssl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment