with CircleCI and MinIO?
Trigger a pipeline given a pipeline definition ID. Supports all integrations except GitLab. See the documentation
The CircleCI API allows for seamless integration and automation of your CI/CD pipeline. By leveraging the API through Pipedream, you can trigger builds, monitor the status of pipelines, fetch build artifacts, and interact with various aspects of your CircleCI projects. This facilitates the creation of dynamic workflows that can streamline development practices, enhance deployment strategies, and ensure continuous integration processes are more efficient and less error-prone.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
circleci: {
type: "app",
app: "circleci",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://circleci.com/api/v1.1/me`,
params: {
"circle-token": `${this.circleci.$auth.token}`,
},
})
},
})
import * as Minio from 'minio'
export default defineComponent({
props: {
minio: {
type: "app",
app: "minio",
}
},
async run({steps, $}) {
const minioClient = new Minio.Client({
endPoint: this.minio.$auth.endpoint,
port: this.minio.$auth.port,
useSSL: this.minio.$auth.use_ssl,
accessKey: this.minio.$auth.access_key,
secretKey: this.minio.$auth.access_secret,
})
const buckets = await minioClient.listBuckets()
return buckets;
},
})