File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99env :
1010 TEST_TAG : corefiling/pdf2html:test
11+ CI_TAG : corefiling/pdf2html:ci-${{ github.run_id }}-${{ github.run_number }}
12+ TAG_TAG : corefiling/pdf2html:${{ github.ref_name }}
1113
1214jobs :
1315 docker :
1416 runs-on : ubuntu-latest
17+ environment : " PDF2HTML Public Upload Env"
1518 steps :
1619 - name : Checkout
1720 uses : actions/checkout@v3
3639 docker run --rm --detach -p 8080:8080 --name pdf2html ${{ env.TEST_TAG }}
3740 dotnet test --filter "FullyQualifiedName=E2E.Tests"
3841 docker stop pdf2html
42+ - if : github.ref_name == 'main' || github.ref_type == 'tag'
43+ name : Login to Docker Hub
44+ uses : docker/login-action@v2
45+ with :
46+ username : ${{ secrets.DOCKERHUB_USER }}
47+ password : ${{ secrets.DOCKERHUB_PASS }}
48+ - if : github.ref_name == 'main' || github.ref_type == 'tag'
49+ name : Push to Docker Hub
50+ uses : docker/build-push-action@v4
51+ with :
52+ context : ./src/Pdf2Html
53+ push : true
54+ tags : ${{ github.ref_type == 'tag' && env.TAG_TAG || env.CI_TAG }}
You can’t perform that action at this time.
0 commit comments