pipeline updates

This commit is contained in:
Mitchell Marino 2023-03-16 23:09:21 -05:00
parent 068dd20e9e
commit 21007a1269
2 changed files with 9 additions and 3 deletions

View File

@ -16,9 +16,12 @@ resources:
icon: docker icon: docker
source: source:
repository: registry.mdev.local/school_app_api repository: registry.mdev.local/school_app_api
insecure: true
tag: latest
- name: deploy - name: deploy
type: docker-compose type: docker-compose
source: source:
port: 2375
host: mdev.local host: mdev.local
jobs: jobs:
@ -49,7 +52,6 @@ jobs:
- put: docker-image - put: docker-image
params: params:
image: image/image.tar image: image/image.tar
version: latest
- name: deploy - name: deploy
plan: plan:
@ -58,7 +60,11 @@ jobs:
passed: [test, build] passed: [test, build]
- put: deploy - put: deploy
params: params:
DOCKER_HOST: "tcp://mdev.local"
command: restart command: restart
# compose_file: repo/docker-compose.yml
path: repo
pull: true pull: true
path: "/home/mitchell/prod/school_app_api" # path: home/mitchell/prod/school_app_api
# path: code

View File

@ -12,7 +12,7 @@ services:
- ./pgdata:/db:rw - ./pgdata:/db:rw
school-app-api: school-app-api:
image: school_app_api image: registry.mdev.local/school_app_api
depends_on: [school-app-db] depends_on: [school-app-db]
ports: ["4455:4455"] ports: ["4455:4455"]