update ci

This commit is contained in:
Mitchell Marino 2023-03-01 19:44:32 -06:00
parent 91a8aac7f7
commit 4e65553a06
3 changed files with 19 additions and 8 deletions

View File

@ -2,15 +2,12 @@ platform: linux
image_resource:
type: registry-image
source: {repository: rust}
inputs:
- name: repo
source: { repository: alpine }
run:
path: sh
args:
- -exc
- |
echo deploying...
ssh -i
dir: "repo"

View File

@ -1,5 +1,11 @@
# Remember to update the pipeline after changing this file with
# `fly set-pipeline`
resource_types:
- name: docker-compose
type: docker-image
source:
repository: troykinsella/concourse-docker-compose-resource
tag: latest
resources:
- name: repo
@ -10,6 +16,10 @@ resources:
icon: docker
source:
repository: registry.mdev.local/school_app_api
- name: deploy
type: docker-compose
source:
host: mdev.local
jobs:
- name: test
@ -44,5 +54,9 @@ jobs:
- get: repo
trigger: true
passed: [test, build]
- task: deploy
file: repo/ci/deploy.yml
- put: deploy
params:
command: restart
pull: true
path: "/home/mitchell/prod/school_app_api"