main.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # This is a basic workflow to help you get started with Actions
  2. name: build-resume
  3. # Controls when the action will run.
  4. on:
  5. # Triggers the workflow on push or pull request events but only for the master branch
  6. push:
  7. branches: [ master ]
  8. # Allows you to run this workflow manually from the Actions tab
  9. workflow_dispatch:
  10. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  11. jobs:
  12. # This workflow contains a single job called "build"
  13. build:
  14. env:
  15. DOCKER_HOST: tcp://docker:2375/
  16. DOCKER_DRIVER: overlay2
  17. # The type of runner that the job will run on
  18. runs-on: ubuntu-latest
  19. container:
  20. image: docker/compose:1.22.0
  21. options: --entrypoint ["/bin/sh", "-c"]
  22. services:
  23. dind:
  24. image: docker:dind
  25. # Steps represent a sequence of tasks that will be executed as part of the job
  26. steps:
  27. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  28. - uses: actions/checkout@v2
  29. - name: Install packages and build resume
  30. run: docker-compose up -d
  31. - name: Upload a Build Artifact
  32. uses: actions/upload-artifact@v2.2.3
  33. with:
  34. # Artifact name
  35. name: Resume PDF # optional, default is artifact
  36. # A file, directory or wildcard pattern that describes what to upload
  37. path: output/*.pdf