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: image_resource:
type: registry-image type: registry-image
source: {repository: rust} source: { repository: alpine }
inputs:
- name: repo
run: run:
path: sh path: sh
args: args:
- -exc - -exc
- | - |
echo deploying... ssh -i
dir: "repo" dir: "repo"

View File

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