Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another option for actions #92

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .docker/resume.dockerfile → .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ RUN apk add make texlive

ENV TEXMF /usr/share/texmf-dist

COPY actions/entrypoint.sh /entrypoint.sh
WORKDIR /home/app/resume

ENTRYPOINT ["make", "pdf", "html"]
55 changes: 0 additions & 55 deletions .github/workflows/docker-update.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build inside docker image
on:
create:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'markdown/**'
env:
IMAGE_NAME: resume-image:${{github.sha}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --tag ${{env.IMAGE_NAME}}
working-directory: docker
- name: Build the Resume
run: docker run --rm -v ${PWD}:/home/app/resume ${{env.IMAGE_NAME}}
- name: Upload PDF
uses: actions/upload-artifact@v3
with:
# Artifact name
name: Resume PDF # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: output/*.pdf
- name: Upload HTML
uses: actions/upload-artifact@v3
with:
# Artifact name
name: Resume HTML # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: output/*.html
36 changes: 0 additions & 36 deletions .github/workflows/main.yml

This file was deleted.

7 changes: 0 additions & 7 deletions actions/action.yml

This file was deleted.

3 changes: 0 additions & 3 deletions actions/entrypoint.sh

This file was deleted.