Skip to content

Update Dockerfile

Update Dockerfile #11

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag latex-resume:latest
- name: Run Docker container to generate PDF and PNG
run: docker run --rm -v ${{ github.workspace }}/src:/data latex-resume:latest
- name: Commit PDF and PNG files (assuming GITHUB_TOKEN is a secret)
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add src/main.pdf src/main.png # Adjust paths if needed
git commit -m 'Auto-generated PDF and PNG'
git push