Skip to content

Instantly share code, notes, and snippets.

@rust20
rust20 / .gitlab-ci.yml
Last active May 7, 2021 08:35
gitlab ci test
stages:
- test
- lint
- deploy
backend:test:
image: golang
stage: test
cache:
key: ${CI_COMMIT_REF_SLUG}
FROM golang:latest
ADD . $GOWORKDIR
WORKDIR $GOWORKDIR
RUN go get ./...
ENTRYPOINT ["go", "run", "main.go"]
version: '2'
services:
db:
image: postgres:alpine
environment:
POSTGRES_NAME: postgres
POSTGRES_PASSWORD: visiland
POSTGRES_USER: postgres
volumes:
- db-data:/var/lib/postgresql/data
@rust20
rust20 / .gitlab-ci.yml
Created April 2, 2019 04:05
complete gitlab CI
stages:
- test
- lint
- deploy
variables:
DOCKER_REGISTRY: "registry.docker.ppl.cs.ui.ac.id/ppla4"
API_IMAGE: "yuk-recycle-api"