ci: Add caches
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
Closes #126.
This commit is contained in:
parent
a90614f2e9
commit
c2cdeedb2c
3 changed files with 11 additions and 2 deletions
|
@ -15,6 +15,10 @@ inputs:
|
|||
outputs:
|
||||
- name: artifacts
|
||||
|
||||
caches:
|
||||
- path: repo/target
|
||||
- path: /usr/local/cargo/registry
|
||||
|
||||
params:
|
||||
CI: "true"
|
||||
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
|
||||
|
||||
image_resource:
|
||||
name: dtmt-ci-base-linux
|
||||
type: registry-image
|
||||
source:
|
||||
repository: registry.local:5000/dtmt-ci-base-linux
|
||||
|
@ -10,8 +12,12 @@ image_resource:
|
|||
inputs:
|
||||
- name: repo
|
||||
|
||||
caches:
|
||||
- path: repo/target
|
||||
- path: /usr/local/cargo/registry
|
||||
|
||||
params:
|
||||
CI: true
|
||||
CI: "true"
|
||||
GITEA_API_KEY: ((gitea_api_key))
|
||||
REF: ((ref))
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ echo "ref: $ref"
|
|||
for f in dtmt dtmt.exe dtmm dtmm.exe; do
|
||||
if [ -f "$artifacts/$f" ]; then
|
||||
url="$base_url/$(basename -s .exe $f)/$ref/$f"
|
||||
echo "$url"
|
||||
curl -i -X 'PUT' \
|
||||
--user "concourse:$GITEA_API_KEY" \
|
||||
--upload-file "$artifacts/$f" \
|
||||
|
|
Loading…
Add table
Reference in a new issue