You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
832 B

  1. name: Build DigitalOcean Image
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. version:
  6. description: 'App Version'
  7. required: true
  8. type: string
  9. jobs:
  10. build-do-image:
  11. name: Build DigitalOcean Image
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Install Packer
  16. run: |
  17. curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
  18. sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
  19. sudo apt-get update && sudo apt-get install packer
  20. - name: Build Droplet Image
  21. env:
  22. DIGITALOCEAN_API_TOKEN: ${{ secrets.DO_TOKEN }}
  23. WIKI_APP_VERSION: ${{ github.event.inputs.version }}
  24. working-directory: dev/packer
  25. run: |
  26. packer build digitalocean.json