Skip to content
Snippets Groups Projects
Commit 7012d267 authored by thijsheijden's avatar thijsheijden
Browse files

Re-added build stage because docker image does not have make

parent 790ec7a8
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ image: golang:1.16
stages:
# - test
- build
- docker
- integration
- deploy
......@@ -54,6 +55,17 @@ stages:
# paths:
# - cover.html
build:
stage: build
script:
- make linux
only:
- develop
artifacts:
paths:
- builds/
dependencies: []
docker:
image: docker:stable
tags:
......@@ -64,12 +76,13 @@ docker:
before_script:
- docker login datastropheregistry.azurecr.io -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD
script:
- make linux
- docker build --progress plain -t $CI_PROJECT_NAME:latest .
- docker tag $CI_PROJECT_NAME datastropheregistry.azurecr.io/$CI_PROJECT_NAME-staging:latest
- docker push datastropheregistry.azurecr.io/$CI_PROJECT_NAME-staging:latest
- docker tag datastropheregistry.azurecr.io/$CI_PROJECT_NAME-staging:latest datastropheregistry.azurecr.io/$CI_PROJECT_NAME:latest
- docker push datastropheregistry.azurecr.io/$CI_PROJECT_NAME:latest
dependencies:
- build
integration-tests:
image: golang:1.16
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment