add: gitea ci build
This commit is contained in:
parent
228a39ad8c
commit
86946b4c38
28
.drone.yml
Normal file
28
.drone.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: kamikazechaser/docker-build:latest
|
||||||
|
environment:
|
||||||
|
DOCKER_BUILDKIT: 1
|
||||||
|
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||||
|
IMAGE_BASE_URL: docker.grassecon.net/cic-stack
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: docker_password
|
||||||
|
volumes:
|
||||||
|
- name: docker_sock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- echo $PASSWORD | docker login docker.grassecon.net --username ci --password-stdin
|
||||||
|
- TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) docker-compose -f docker-compose.build.yml build --progress plain
|
||||||
|
- docker-compose -f docker-compose.build.yml push
|
||||||
|
volumes:
|
||||||
|
- name: docker_sock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
@ -1,52 +1,52 @@
|
|||||||
version: '3.2'
|
version: "3.2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
cic-cache:
|
cic-cache:
|
||||||
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-cache:${TAG:-latest}
|
image: docker.grassecon.net/cic-stack/cic-cache:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: apps/cic-cache
|
context: apps/cic-cache
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-cache:latest
|
- docker.grassecon.net/cic-stack/cic-cache:${TAG:-latest}
|
||||||
cic-eth:
|
cic-eth:
|
||||||
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-eth:${TAG:-latest}
|
image: docker.grassecon.net/cic-stack/cic-eth:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: apps/cic-eth
|
context: apps/cic-eth
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-eth:latest
|
- docker.grassecon.net/cic-stack/cic-eth:${TAG:-latest}
|
||||||
cic-meta:
|
cic-meta:
|
||||||
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-meta:${TAG:-latest}
|
image: docker.grassecon.net/cic-stack/cic-meta:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: apps/cic-meta
|
context: apps/cic-meta
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-meta:latest
|
- docker.grassecon.net/cic-stack/cic-meta:${TAG:-latest}
|
||||||
cic-notify:
|
cic-notify:
|
||||||
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-notify:${TAG:-latest}
|
image: docker.grassecon.net/cic-stack/cic-notify:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: apps/cic-notify
|
context: apps/cic-notify
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-notify:latest
|
- docker.grassecon.net/cic-stack/cic-notify:${TAG:-latest}
|
||||||
funga-eth:
|
funga-eth:
|
||||||
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/funga-eth:${TAG:-latest}
|
image: docker.grassecon.net/cic-stack/funga-eth:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: apps/cic-signer
|
context: apps/cic-signer
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/funga-eth:latest
|
- docker.grassecon.net/cic-stack/funga-eth:${TAG:-latest}
|
||||||
cic-ussd:
|
cic-ussd:
|
||||||
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-ussd:${TAG:-latest}
|
image: docker.grassecon.net/cic-stack/cic-ussd:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: apps/cic-ussd
|
context: apps/cic-ussd
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-ussd:latest
|
- docker.grassecon.net/cic-stack/cic-ussd:${TAG:-latest}
|
||||||
cic-contract-bootstrap:
|
cic-contract-bootstrap:
|
||||||
image: ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-contract-bootstrap:${TAG:-latest}
|
image: docker.grassecon.net/cic-stack/cic-contract-bootstrap:${TAG:-latest}
|
||||||
build:
|
build:
|
||||||
context: apps/contract-migration
|
context: apps/contract-migration
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
cache_from:
|
cache_from:
|
||||||
- ${IMAGE_BASE_URL:-registry.gitlab.com/grassrootseconomics/cic-internal-integration}/cic-ussd:latest
|
- docker.grassecon.net/cic-stack/cic-ussd:${TAG:-latest}
|
||||||
|
Loading…
Reference in New Issue
Block a user