Skip to main content
Home

Built and signed on GitHub Actions

🧩 A ready-to-use CI/CD Pipeline for uploading assets to GitLab releases

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
76%
Published
2 years ago (0.4.0)

Gitlab Pipeline

fluentci pipeline deno compatibility dagger-min-version ci

A ready-to-use CI/CD Pipeline for uploading assets to gitlab releases.

🚀 Usage

Run the following command:

fluentci run gitlab_pipeline

🧩 Dagger Module

Use as a Dagger Module:

dagger install github.com/fluent-ci-templates/gitlab-pipeline@main

Call a function from the module:

dagger call release-create --src . \
 --token env:GITLAB_ACCESS_TOKEN \
 --tag v0.1.0

dagger call release-upload --src . \
   --token env:GITLAB_ACCESS_TOKEN \
   --tag v0.1.0 \
   --file ./demo_v0.1.0_x86_64-unknown-linux-gnu.tar.gz

🛠️ Environment Variables

Variable Description
TAG Git tag to upload to
FILE File to upload
GITLAB_ACCESS_TOKEN Gitlab Access Token

✨ Jobs

Job Description
release_create Creates a gitlab release
release_upload Uploads a file to a gitlab release
 releaseCreate(
    src: string | Directory | undefined = ".",
    token?: string | Secret,
    tag?: string
 ): Promise<string>

 releaseUpload(
    src: string | Directory | undefined = ".",
    token?: string,
    tag?: string,
    file?: string
 ): Promise<string>

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

import { releaseCreate, releaseUpload } from "jsr:@fluentci/gitlab";

await releaseCreate();
await releaseUpload();

📚 Examples

See tsiry.sndr/gitlab-release-demo for a working example.

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fluentci/gitlab

Import symbol

import * as gitlab from "@fluentci/gitlab";
or

Import directly with a jsr specifier

import * as gitlab from "jsr:@fluentci/gitlab";

Add Package

pnpm i jsr:@fluentci/gitlab
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fluentci/gitlab

Import symbol

import * as gitlab from "@fluentci/gitlab";

Add Package

yarn add jsr:@fluentci/gitlab
or (using Yarn 4.8 or older)
yarn dlx jsr add @fluentci/gitlab

Import symbol

import * as gitlab from "@fluentci/gitlab";

Add Package

vlt install jsr:@fluentci/gitlab

Import symbol

import * as gitlab from "@fluentci/gitlab";

Add Package

npx jsr add @fluentci/gitlab

Import symbol

import * as gitlab from "@fluentci/gitlab";

Add Package

bunx jsr add @fluentci/gitlab

Import symbol

import * as gitlab from "@fluentci/gitlab";