Skip to content
Merged
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
16 changes: 16 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ on:

env:
TEST_TAG: corefiling/pdf2html:test
CI_TAG: corefiling/pdf2html:ci-${{ github.run_id }}-${{ github.run_number }}
Comment thread
ethanbishop marked this conversation as resolved.
TAG_TAG: corefiling/pdf2html:${{ github.ref_name }}
Comment thread
ethanbishop marked this conversation as resolved.

jobs:
docker:
runs-on: ubuntu-latest
environment: "PDF2HTML Public Upload Env"
Comment thread
ethanbishop marked this conversation as resolved.
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -36,3 +39,16 @@ jobs:
docker run --rm --detach -p 8080:8080 --name pdf2html ${{ env.TEST_TAG }}
dotnet test --filter "FullyQualifiedName=E2E.Tests"
docker stop pdf2html
- if: github.ref_name == 'main' || github.ref_type == 'tag'
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- if: github.ref_name == 'main' || github.ref_type == 'tag'
name: Push to Docker Hub
uses: docker/build-push-action@v4
with:
context: ./src/Pdf2Html
push: true
tags: ${{ github.ref_type == 'tag' && env.TAG_TAG || env.CI_TAG }}
Comment thread
ethanbishop marked this conversation as resolved.