Skip to content

Commit

Permalink
Add conversion engine pdflatex, handle errors, publish Docker image (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored Oct 7, 2022
1 parent 70fd997 commit 346d099
Show file tree
Hide file tree
Showing 11 changed files with 343 additions and 130 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: spawnia/md-to-pdf

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: spawnia
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
**/*.rs.bk

*.pdf
.bash_history
md-to-pdf
Loading

0 comments on commit 346d099

Please sign in to comment.