Improve CI #128
3 changed files with 11 additions and 2 deletions
|
@ -15,6 +15,10 @@ inputs:
|
||||||
outputs:
|
outputs:
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
|
|
||||||
|
caches:
|
||||||
|
- path: repo/target
|
||||||
|
- path: /usr/local/cargo/registry
|
||||||
|
|
||||||
params:
|
params:
|
||||||
CI: "true"
|
CI: "true"
|
||||||
TARGET: ((target))
|
TARGET: ((target))
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/cappyzawa/concourse-pipeline-jsonschema/master/concourse_jsonschema.json#/definitions/TaskConfig
|
||||||
---
|
---
|
||||||
platform: linux
|
platform: linux
|
||||||
|
|
||||||
image_resource:
|
image_resource:
|
||||||
|
name: dtmt-ci-base-linux
|
||||||
type: registry-image
|
type: registry-image
|
||||||
source:
|
source:
|
||||||
repository: registry.local:5000/dtmt-ci-base-linux
|
repository: registry.local:5000/dtmt-ci-base-linux
|
||||||
|
@ -10,8 +12,12 @@ image_resource:
|
||||||
inputs:
|
inputs:
|
||||||
- name: repo
|
- name: repo
|
||||||
|
|
||||||
|
caches:
|
||||||
|
- path: repo/target
|
||||||
|
- path: /usr/local/cargo/registry
|
||||||
|
|
||||||
params:
|
params:
|
||||||
CI: true
|
CI: "true"
|
||||||
GITEA_API_KEY: ((gitea_api_key))
|
GITEA_API_KEY: ((gitea_api_key))
|
||||||
REF: ((ref))
|
REF: ((ref))
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ echo "ref: $ref"
|
||||||
for f in dtmt dtmt.exe dtmm dtmm.exe; do
|
for f in dtmt dtmt.exe dtmm dtmm.exe; do
|
||||||
if [ -f "$artifacts/$f" ]; then
|
if [ -f "$artifacts/$f" ]; then
|
||||||
url="$base_url/$(basename -s .exe $f)/$ref/$f"
|
url="$base_url/$(basename -s .exe $f)/$ref/$f"
|
||||||
echo "$url"
|
|
||||||
curl -i -X 'PUT' \
|
curl -i -X 'PUT' \
|
||||||
--user "concourse:$GITEA_API_KEY" \
|
--user "concourse:$GITEA_API_KEY" \
|
||||||
--upload-file "$artifacts/$f" \
|
--upload-file "$artifacts/$f" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue