variables: DOCKER_IMAGE: '$IMAGE_URL' image: '$DOCKER_IMAGE' stages: - analyze - lint - test - validate - deploy - release analyze:lint: stage: analyze image: golangci/golangci-lint:v1.57 script: - golangci-lint run -v tags: - k8s-tbk lint:gofmt: stage: lint script: - ci/gofmt.sh tags: - k8s-tbk lint:vet: stage: lint script: - go vet ./... tags: - k8s-tbk lint:modtidy: stage: lint script: - ci/tidy.sh tags: - k8s-tbk test:go: stage: test script: - go test ./... tags: - k8s-tbk validate:tag-message: stage: validate only: - tags script: - ci/validate_tag_message.sh $CI_COMMIT_TAG tags: - k8s-tbk deploy:deploy-to-github: stage: deploy only: - tags script: - ci/deploy_to_github.sh tags: - k8s-tbk release:release-to-github: stage: release only: - tags script: - ci/release_to_github.sh $CI_COMMIT_TAG tags: - k8s-tbk