41 lines
780 B
YAML
41 lines
780 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: dj-embe
|
|
|
|
steps:
|
|
- name: check
|
|
image: docker:24.0.6-cli
|
|
privileged: true
|
|
volumes:
|
|
- name: docker-socket
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- docker build --target check .
|
|
|
|
- name: test
|
|
image: docker:24.0.6-cli
|
|
privileged: true
|
|
volumes:
|
|
- name: docker-socket
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- docker build --target test .
|
|
|
|
- name: deploy
|
|
image: docker/compose:alpine-1.29.2
|
|
privileged: true
|
|
volumes:
|
|
- name: docker-socket
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- docker-compose build
|
|
- docker-compose up -d
|
|
when:
|
|
branch:
|
|
- main
|
|
|
|
volumes:
|
|
- name: docker-socket
|
|
host:
|
|
path: /var/run/docker.sock
|