Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Continuous Delivery with GitHub Actions 2019-09-24

sullis
September 24, 2019

Continuous Delivery with GitHub Actions 2019-09-24

Portland Java User Group
September 24, 2019
Portland Oregon
#ContinuousDelivery
#GitHubActions

sullis

September 24, 2019
Tweet

More Decks by sullis

Other Decks in Programming

Transcript

  1. Sean Sullivan
    September 24, 2019
    Portland Java User Group
    Continuous Delivery
    with GitHub Actions

    View Slide

  2. software engineer
    Portland Oregon
    code generators
    tinyrobots
    About me

    View Slide

  3. GITHUB ACTIONS:
    A FUTURE
    TO BELIEVE IN

    View Slide

  4. GitHub Actions enable
    you to create custom
    software development
    lifecycle workflows directly in
    your GitHub repository
    https://help.github.com/en/articles/about-github-actions

    View Slide

  5. GitHub Actions is currently in
    limited public beta and is
    subject to change
    https://help.github.com/en/articles/about-github-actions

    View Slide

  6. You can write individual
    tasks, called actions, and
    combine them to create a
    custom workflow
    https://help.github.com/en/articles/about-github-actions

    View Slide

  7. GitHub
    webhooks
    GitHub
    Actions

    View Slide

  8. Workflows are custom
    automated processes that
    you can set up in your
    repository to build, test,
    package, release, or deploy
    https://help.github.com/en/articles/about-github-actions

    View Slide

  9. Workflow file
    The YAML file that defines your
    workflow configuration.
    This file lives in
    .github/workflows
    https://help.github.com/en/articles/about-github-actions

    View Slide

  10. .travis.yml
    .github/workflows

    View Slide

  11. View Slide

  12. https://github.com/features/actions/signup/

    View Slide

  13. create
    deployment
    deployment_status
    Events that trigger workflows
    https://help.github.com/en/articles/events-that-trigger-workflows
    pull_request
    push
    schedule
    (and many more)

    View Slide

  14. https://github.com/actions

    View Slide

  15. Starter workflows

    View Slide

  16. https://github.com/actions/starter-workflows/tree/master/ci

    View Slide

  17. workflow YAML

    View Slide

  18. https://github.com/actions/starter-workflows/blob/master/ci/maven.yml

    View Slide

  19. Actions UI

    View Slide

  20. View Slide

  21. View Slide

  22. Demo

    View Slide

  23. Creating a custom
    Action
    with TypeScript

    View Slide

  24. https://github.com/actions/typescript-action

    View Slide

  25. https://github.com/actions/typescript-action/blob/master/action.yml

    View Slide

  26. https://github.com/actions/typescript-action/blob/master/src/main.ts

    View Slide

  27. case study:
    Micronaut project

    View Slide

  28. View Slide

  29. https://github.com/micronaut-projects/micronaut-data/

    View Slide

  30. View Slide

  31. View Slide

  32. View Slide

  33. The End

    View Slide

  34. View Slide