mirror of
https://github.com/dnlbauer/pdfact-service.git
synced 2026-09-10 14:15:30 +00:00
Merge pull request #4 from dnlbauer/dnlbauer-patch-1
fix actions failing on PRs
This commit is contained in:
7
.github/workflows/publish-docker.yml
vendored
7
.github/workflows/publish-docker.yml
vendored
@@ -14,17 +14,15 @@ env:
|
||||
IMAGE_NAME: pdfact-service
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: set tag
|
||||
id: tag
|
||||
run: echo "::set-output name=tag::$(date +%s)"
|
||||
- name: docker login
|
||||
if: ${{github.event_name != 'pull_request'}}
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{env.CONTAINER_REGISTRY_USER}}
|
||||
@@ -33,7 +31,7 @@ jobs:
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
push: ${{github.event_name != 'pull_request'}}
|
||||
tags: ${{env.CONTAINER_REGISTRY_USER}}/${{env.IMAGE_NAME}}:latest , ${{env.CONTAINER_REGISTRY_USER}}/${{env.IMAGE_NAME}}:${{ steps.tag.outputs.tag }}
|
||||
- name: docker push readme
|
||||
uses: christian-korneck/update-container-description-action@v1
|
||||
@@ -46,4 +44,3 @@ jobs:
|
||||
provider: dockerhub
|
||||
short_description: 'Analyze pdf files with pdfact using a simple web API.'
|
||||
readme_file: 'README.md'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user