docker-update.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # This workflow updates the docker container which has context and
  2. # pandoc installed, and on which the resume documents are built. The
  3. # workflow runs whenever the dockerfile is changed, and updates the
  4. # container image in the Github Packages registry.
  5. name: Publish Docker Image
  6. # Controls when the action will run.
  7. on:
  8. # Triggers the workflow on push events but only for the master branch
  9. push:
  10. branches: [ master ]
  11. # Allows you to run this workflow manually from the Actions tab
  12. workflow_dispatch:
  13. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  14. jobs:
  15. # This workflow contains a single job which does both the building and the pushing
  16. push-to-registry:
  17. name: Build and Push resume builder docker image
  18. # The type of runner that the job will run on
  19. runs-on: ubuntu-latest
  20. permissions:
  21. packages: write
  22. contents: read
  23. steps:
  24. - name: Build and push Docker images to Github Packages
  25. uses: docker/build-push-action@v2.4.0
  26. with:
  27. file: .docker/resume.dockerfile
  28. tag: pandoc_resume/resume_builder:latest
  29. push: true