Skip to content

Instantly share code, notes, and snippets.

@rctay

rctay/docker-compose.yml

Last active Dec 5, 2018
Embed
What would you like to do?
Persist artifacts for concourse builds with minio
services:
# ...
minio:
image: minio/minio
ports: ["9000:9000"]
command: minio server /data
environment:
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=miniosecret
resources:
# ...
- name: minio-e2e-reports
type: s3
source:
bucket: concourse-e2e-reports
regexp: protractor-screenshoter-report_(.*).tgz
endpoint: minio:9000
access_key_id: minio
secret_access_key: miniosecret
disable_ssl: true
jobs:
# ...
- name: e2e-test
plan:
- get: repo
# ...
- task: run-e2e-tests
config:
platform: linux
inputs:
- name: repo
outputs:
- name: minio-reports
run:
path: sh
args:
# note how we use -xc instead of the usual -exc to avoid failfast behaviour and allow archiving of reports to run
- -xc
- |
cd repo/frontend
npm install
ng e2e --configuration=development
result="$?"
tar -C reports/e2e -czf ../../minio-reports/protractor-screenshoter-report_$(date +%Y%m%d-%H%M%S).tgz .
exit "$result"
ensure:
do:
- task: clear-database
# ...
- put: minio-e2e-reports
params:
file: minio-reports/protractor-screenshoter-report_*.tgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment