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

[2020.05 Meetup] [Talk#2] Miguel Palhas - Autom...

[2020.05 Meetup] [Talk#2] Miguel Palhas - Automating your Way to Confidence

See the vídeo at: https://youtu.be/KrRGMG99zyQ

DevOps Lisbon

May 18, 2020
Tweet

More Decks by DevOps Lisbon

Other Decks in Technology

Transcript

  1. name: Github Action Example on: push: pull_request: types: [opened, synchronize]

    issue_comment: types: [created] jobs: ... 1 2 3 4 5 6 7 8 9 10 11 12 13 Triggers
  2. name: Github Action Example jobs: test: runs-on: ubuntu-latest container: node:9.11.2

    steps: - name: Hello run: echo "Hello World" 1 2 3 4 5 6 7 8 9 10 Commands
  3. name: Deploy on: [deployment] jobs: test: steps: - name: Checkout

    run: actions/checkout@v1 with: ref: ${{ github.event.deployment.ref }} 1 2 3 4 5 6 7 8 9 10 11 Reusable Actions
  4. steps: - name: Trigger Deploy uses: actions/[email protected] with: script: |

    console.log("wow, javascript!") await github.repos.createDeployment({ # ... }) 1 2 3 4 5 6 7 8 9 10 11 12 13 github-script
  5. 1. Consumes the Github API, not just `git push` 2.

    More intuitive flows for our team 3. Powerful reusability (JS / Docker actions)