use golang image for cicd

This commit is contained in:
Hector 2023-06-19 19:26:57 +01:00
parent 97bc9925e4
commit fc2b16a678

View File

@ -2,10 +2,8 @@ stages:
- test
- build
# .go_template:
# image: golang:latest
# before_script:
# - make download
.go_template:
image: golang:latest
# .docker_template:
# image: docker:stable
@ -17,24 +15,32 @@ stages:
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
dependencies:
extends: .go_template
stage: test
script:
- make check/dependencies
format:
extends: .go_template
stage: test
script:
- make check/fmt
test:
extends: .go_template
stage: test
script:
- make test
build:
extends: .go_template
stage: build
script:
- make build
artifacts:
paths:
- build/*
expire_in: 1 day
# build:
# extends: .go_template