Remove extra CI files

This commit is contained in:
itzaname 2021-12-31 17:37:31 -05:00
parent 4f6d1569ae
commit 58e4c375c4
2 changed files with 0 additions and 101 deletions

View File

@ -1,41 +0,0 @@
kind: pipeline
name: default
steps:
- name: test
image: golang:1.16
commands:
- go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/)
- name: build
image: golang:1.16
commands:
- cp /etc/ssl/certs/ca-certificates.crt .
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o rbxcompiler ./cmd/rbxcompiler
- name: artifacts
image: curlimages/curl:7.78.0
environment:
NEXUS_USER:
from_secret: NEXUS_USER
NEXUS_PASSWORD:
from_secret: NEXUS_PASSWORD
commands:
- curl -u $${NEXUS_USER}:$${NEXUS_PASSWORD} --upload-file rbxcompiler https://nexus.itzana.me/repository/public/artifacts/itzaname/rbxcompiler-amd64-linux
- name: docker
image: plugins/docker:19
settings:
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
registry: registry.itzana.me
repo: registry.itzana.me/public/rbxcompiler
tags:
- latest
when:
branch:
- master

View File

@ -1,60 +0,0 @@
image: golang:1.14.2
variables:
REPO_NAME: git.itzana.me/qtdb/rbxcompile
before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
- echo -e "machine git.itzana.me login gitlab-ci-token password ${CI_JOB_TOKEN}" > ~/.netrc
stages:
- test
- build
- deploy
format:
stage: test
script:
- go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/)
compile:
stage: build
script:
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o $CI_PROJECT_DIR/rbxcompiler ./cmd/rbxcompiler
artifacts:
paths:
- rbxcompiler
docker-build-release:
image: docker:latest
stage: deploy
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/release" .
- docker build --pull -t "$CI_REGISTRY_IMAGE/release:$CI_COMMIT_SHA" .
- docker push "$CI_REGISTRY_IMAGE/release"
- docker push "$CI_REGISTRY_IMAGE/release:$CI_COMMIT_SHA"
only:
refs:
- master
docker-build-dev:
image: docker:latest
stage: deploy
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/test:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE/test:$CI_COMMIT_REF_SLUG"
except:
refs:
- master