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