Try to save artifacts to Minio
This commit is contained in:
parent
5d3b3485fa
commit
15cbd17003
@ -78,6 +78,21 @@ local cachedPipeline(name, commands) = basePipeline(
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// This function creates a step to upload artifacts to Minio
|
||||||
|
local upload(name, source) = {
|
||||||
|
name: name,
|
||||||
|
image: 'plugins/s3',
|
||||||
|
settings: {
|
||||||
|
bucket: 'artifacts',
|
||||||
|
source: source,
|
||||||
|
target: '/',
|
||||||
|
path_style: true,
|
||||||
|
endpoint: 'http://127.0.0.1:9000',
|
||||||
|
access_key: { from_secret: 'minio_key' },
|
||||||
|
secret_key: { from_secret: 'minio_secret' },
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// Here starts the actual list of pipelines!
|
// Here starts the actual list of pipelines!
|
||||||
|
|
||||||
@ -142,18 +157,26 @@ local Integration(db) = cachedPipeline(
|
|||||||
// It should also deploy the SQlite build to a test instance
|
// It should also deploy the SQlite build to a test instance
|
||||||
// located at https://pr-XXX.joinplu.me (but this system is not very
|
// located at https://pr-XXX.joinplu.me (but this system is not very
|
||||||
// stable, and often breaks).
|
// stable, and often breaks).
|
||||||
//
|
local Release(db) = basePipeline(
|
||||||
// TODO: save the artifacts that are generated somewhere
|
|
||||||
local Release(db) = cachedPipeline(
|
|
||||||
"release-" + db,
|
"release-" + db,
|
||||||
[
|
[
|
||||||
"cargo web deploy -p plume-front --release",
|
restoreCache,
|
||||||
"cargo build --release --no-default-features --features=" + db + " -p plume",
|
{
|
||||||
"cargo build --release --no-default-features --features=" + db + " -p plume-cli",
|
name: 'release-' + db,
|
||||||
"./script/generate_artifact.sh",
|
image: plumeEnv,
|
||||||
] + if db == "sqlite" then
|
commands: [
|
||||||
[ "./script/upload_test_environment.sh" ] else
|
"cargo web deploy -p plume-front --release",
|
||||||
[]
|
"cargo build --release --no-default-features --features=" + db + " -p plume",
|
||||||
|
"cargo build --release --no-default-features --features=" + db + " -p plume-cli",
|
||||||
|
"./script/generate_artifact.sh",
|
||||||
|
] + if db == "sqlite" then
|
||||||
|
[ "./script/upload_test_environment.sh" ] else
|
||||||
|
[]
|
||||||
|
},
|
||||||
|
upload('artifacts-' + db, '*.tar.gz'),
|
||||||
|
saveCache,
|
||||||
|
]
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// PIPELINE 6: upload the new PO templates (.pot) to Crowdin
|
// PIPELINE 6: upload the new PO templates (.pot) to Crowdin
|
||||||
|
Loading…
Reference in New Issue
Block a user