GithubHelp home page GithubHelp logo

kpenfound / dagger-for-github Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dagger/dagger-for-github

0.0 0.0 0.0 995 KB

GitHub Action for Dagger

Home Page: https://github.com/marketplace/actions/dagger-for-github

License: Apache License 2.0

TypeScript 79.62% HCL 6.19% Dockerfile 12.33% CUE 1.86%

dagger-for-github's Introduction

Dagger

GitHub release GitHub marketplace Test workflow Codecov

About

GitHub Action for Dagger, a programmable deployment system.

Screenshot


Usage

Basic

name: dagger

on:
  push:
    branches:
      - main

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v3
      -
        name: Dagger
        uses: dagger/dagger-for-github@v4
        with:
          cmds: do test

Install Only

steps:
  -
    name: Install Dagger
    uses: dagger/dagger-for-github@v4
    with:
      install-only: true
  -
    name: Show Dagger version
    run: dagger-cue version

Install Only and --with

steps:
  -
    name: Install Dagger
      uses: dagger/dagger-for-github@v4
      with:
        install-only: true
     
  -
    name: Build a subdir example
    run: |
      dagger-cue do build --log-format plain -with 'actions:build:subdir: ${{env.SUBDIR}}'

Multiple commands

steps:
  -
    name: Dagger
    uses: dagger/dagger-for-github@v4
    with:
      cmds: |
        project update
        do test

Customizing

inputs

Following inputs can be used as step.with keys

List type is a newline-delimited string

cmds: |
  project update
  do test
Name Type Default Description
version String 0.2.232 Dagger version (e.g., 0.2.232, latest, https://github.com/dagger/dagger.git#main)
cmds List List of Dagger commands
workdir String . Working directory (below repository root)
install-only Bool false Just install Dagger
cleanup Bool true Cleanup Dagger home folder at the end of a job

Development

# format code and build javascript artifacts
docker buildx bake pre-checkin

# validate all code has correctly formatted and built
docker buildx bake validate

# run tests
docker buildx bake test

License

Apache-2.0 License. See LICENSE for more details.

dagger-for-github's People

Contributors

crazy-max avatar dependabot[bot] avatar aluzzardi avatar marcosnils avatar gerhard avatar jpadams avatar joaofnds avatar samalba avatar grouville avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.