Verified Commit 68df442b authored by Pierre's avatar Pierre 🤖
Browse files

test building binaries

parent 12f9388c
Loading
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
stages:
  - release-docker
  - test-build

.test-build: &test-build
  image: golang:1.8-alpine
  stage: test-build
  script:
    - apk add --no-cache build-base git
    - go get -d gitlab.com/klud/graphql-docker-api/cmd/gql-dkr
    - cd go/src/gitlab.com/klud/graphql-docker-api/cmd/gql-dkr
    - go get ./
    - CGO_ENABLED=0 GOOS=linux go build -a -ldflags="-s -w" -installsuffix cgo
  artifacts:
    name: "$CI_JOB_NAME"
    paths:
      - go/src/gitlab.com/klud/graphql-docker-api/cmd/gql-dkr/gql-dkr
    expire_in: 1 week

.images: &images
  image: docker:17.06
@@ -24,4 +40,5 @@ stages:
    - docker logout $CI_REGISTRY
    - docker logout

test-bin: *test-build
docker-gql: *images
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

[![pipeline status](https://gitlab.com/klud/graphql-docker-api/badges/master/pipeline.svg)](https://gitlab.com/klud/graphql-docker-api/commits/master) [![coverage report](https://gitlab.com/klud/graphql-docker-api/badges/master/coverage.svg)](https://gitlab.com/klud/graphql-docker-api/commits/master) [![Go Report Card](https://goreportcard.com/badge/gitlab.com/klud/graphql-docker-api)](https://goreportcard.com/report/gitlab.com/klud/graphql-docker-api) [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE)

[![](https://images.microbadger.com/badges/image/klud/docker-gql:latest.svg)](https://microbadger.com/images/klud/docker-gql:latest "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/version/klud/docker-gql:latest.svg)](https://microbadger.com/images/klud/docker-gql:latest "Get your own version badge on microbadger.com") [![Docker Pulls](https://img.shields.io/docker/pulls/klud/docker-gql.svg)](https://hub.docker.com/r/klud/docker-gql/) [![Docker Pulls](https://img.shields.io/docker/stars/klud/docker-gql.svg)](https://hub.docker.com/r/klud/docker-gql/) 
[![](https://images.microbadger.com/badges/image/klud/docker-gql.svg)](https://microbadger.com/images/klud/docker-gql "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/version/klud/docker-gql.svg)](https://microbadger.com/images/klud/docker-gql "Get your own version badge on microbadger.com") [![Docker Pulls](https://img.shields.io/docker/pulls/klud/docker-gql.svg)](https://hub.docker.com/r/klud/docker-gql/) [![Docker Pulls](https://img.shields.io/docker/stars/klud/docker-gql.svg)](https://hub.docker.com/r/klud/docker-gql/) 

<p align="center"> <img src="resources/docker-go-graphql.png" alt="Logo" width="400"></p>