Skip to content

Commit ad3a5f0

Browse files
committed
CI added
1 parent 290b864 commit ad3a5f0

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.gitlab-ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
variables:
2+
PUBLIC_TAG: 'vulnerables/cve-2014-6271'
3+
stages:
4+
- build
5+
6+
build:
7+
stage: build
8+
script:
9+
- export IMAGE_TAG=$(echo -en $CI_BUILD_REF_NAME | tr -c '[:alnum:]_.-' '-' | sed 's/master/latest/g')
10+
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
11+
- docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" .
12+
- docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG"
13+
- docker tag "$CI_REGISTRY_IMAGE:$IMAGE_TAG" "$PUBLIC_TAG"
14+
tags:
15+
- docker

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM debian:wheezy
22

3-
MAINTAINER opsxcq <opsxcq@thestorm.com.br>
3+
LABEL maintainer "opsxcq@strm.sh"
44

55
RUN apt-get update && \
66
apt-get upgrade -y && \

0 commit comments

Comments
 (0)