Bump flask from 2.3.2 to 3.0.0 #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request_target: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CONTAINER_REGISTRY_USER: dnlbauer | |
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_target'}} | |
uses: docker/login-action@v2 | |
with: | |
username: ${{env.CONTAINER_REGISTRY_USER}} | |
password: ${{secrets.DOCKER_PASSWORD}} | |
- name: docker build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: ${{github.event_name != 'pull_request_target'}} | |
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 | |
if: ${{ github.event_name != 'pull_request_target' }} | |
env: | |
DOCKER_USER: ${{env.CONTAINER_REGISTRY_USER}} | |
DOCKER_PASS: ${{secrets.DOCKER_PASSWORD}} | |
with: | |
destination_container_repo: ${{env.CONTAINER_REGISTRY_USER}}/${{env.IMAGE_NAME}} | |
provider: dockerhub | |
short_description: 'Analyze pdf files with pdfact using a simple web API.' | |
readme_file: 'README.md' | |
dependabot_auto_merge: | |
needs: build | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' }} | |
steps: | |
- name: Automerge dependabot PR | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{secrets.DEPENDABOT_TOKEN}} | |
run: gh pr merge --auto --merge "$PR_URL" |