name: rpdata-api kind: pipeline type: docker steps: - name: go-test image: golang:1.14 commands: - go generate ./... - go test -v ./... # - name: postgres-migrate # image: golang:1.15 # depends_on: [] # environment: # DB_CONNECT: # from_secret: db_connect # commands: # - go get -u github.com/pressly/goose/... # - cd migrations/postgres # - goose postgres "$DB_CONNECT" up # when: # event: # - tag - name: docker-release-tag image: plugins/docker settings: auto_tag: true username: from_secret: docker_username password: from_secret: docker_password repo: r.vmaple.dev/rpdata/rpdata-api registry: r.vmaple.dev when: event: - tag - name: docker-release-latest image: plugins/docker settings: auto_tag: false username: from_secret: docker_username password: from_secret: docker_password repo: r.vmaple.dev/rpdata/rpdata-api registry: r.vmaple.dev when: event: - tag