AllSpice CI/CD Actions Quickstart
    • PDF

    AllSpice CI/CD Actions Quickstart

    • PDF

    Article Summary

    ""

    CI/CD Actions quickstart

    If you require more help, please don’t hesistate to reach out to us at support@allspice.io.

    Sign up for Actions

    Currently in private beta. Talk to one of our friendly engineers to get early access to Actions for your team.

    Enable actions in your repository

    Enable actions by visiting your repository->🔧Settings, and clicking [X] Enable Repository Actions

    image.png

    Scroll down to search (ctrl+f) for "Actions"

    Ensure Enable Repository Actions is checked

    image.png

    enable actions in your repository.gif

    Actions are only for organization repos
    Actions will not currently work on a personal repositories during this phase of the beta. You must use a repository owned by an organization.

    Create workflow file

    Actions are defined in workflow.yml files

    Create a file in your repo .allspice/workflows/hello-world.yml with the following text

    name: Workflow-hello-world
    
    on: 
      push:
      issues:
        # Trigger on issue open, close, or reopen
        types: [opened, closed, reopened]
    
    jobs:
      Job-Hello-World:
        runs-on: ubuntu-latest
        steps:
          - name: "Print Hello World 🔎" 
            run: echo "Hello World"    

    Select repository→Add File→New File

    Name the file .allspice/workflows/hello-world.yml

    Note: you must put workflow files in .allspice/workflows/ folder

    Paste the code from above and commit the changes

    Note: This workflow specifies that actions will trigger on push or issue open/close

    Trigger your action

    The example above should trigger an action as soon as you commit the files. To trigger this action again do one of the following:

    • Push changes to the repo

    • Open an issue

    • Close an issue

    View Actions results

    Visit the Actions tab and see the actions result

    Click on the workflow to see the results

    Click on your job step to see Hello World

    If something goes wrong, let’s troubleshoot!

    Next

    Hello world demos - line-by-line explanations of the workflow file.


    Was this article helpful?