Skip to content

Commit

Permalink
Getting rid of old build
Browse files Browse the repository at this point in the history
  • Loading branch information
sc250024 committed Sep 4, 2019
1 parent b917f25 commit d465a33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
22 changes: 0 additions & 22 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,11 @@
variables:
CI_REGISTRY: docker.io
GL_URL: github.com/rb3ckers
GO_PROJECT_NAMESPACE: trafficmirror
IMAGE_FAMILY: stackstate/trafficmirror

stages:
- build
- docker_build

go_build:
stage: build
image: docker:stable
script:
- docker build
--tag "${CI_REGISTRY}/${IMAGE_FAMILY}:${CI_BUILD_REF:-dirty}"
--target builder
${PWD}
- docker run
--volume ${PWD}/build:/opt/copy
--rm
--entrypoint cp
"${CI_REGISTRY}/${IMAGE_FAMILY}:${CI_BUILD_REF:-dirty}"
/build/trafficmirror /opt/copy/
- ls -lha
artifacts:
paths:
- build
expire_in: 1 week

docker_build:
stage: docker_build
image: docker:stable
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN /build/trafficmirror --help

FROM alpine:latest AS app

ENV PERSISTENT_PACKAGES="ca-certificates tini"
ENV PERSISTENT_PACKAGES="tini"

# Copy support files
COPY rootfs /
Expand Down

0 comments on commit d465a33

Please sign in to comment.