docker-update.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. # This workflow contains a single job which does both the building and the pushing
  14. jobs:
  15. push_to_registry:
  16. name: Push Docker image to GitHub Packages
  17. runs-on: ubuntu-latest
  18. permissions:
  19. packages: write
  20. contents: read
  21. steps:
  22. - name: Check out the repo
  23. uses: actions/checkout@v2
  24. - name: Push to GitHub Packages
  25. uses: docker/build-push-action@v1
  26. with:
  27. username: ${{ github.actor }}
  28. password: ${{ secrets.GITHUB_TOKEN }}
  29. registry: docker.pkg.github.com
  30. repository: mszep/pandoc_resume/resume_builder
  31. tag_with_ref: true
  32. dockerfile: .docker/resume.dockerfile