Bump docker/build-push-action from 5 to 6 #75
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: CI testing under construction | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
branches: [ master ] | |
tags: [ 'v*.*.*' ] | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '**.md' | |
# schedule: | |
# - cron: '00 20 * * 0-5' | |
workflow_dispatch: | |
env: | |
# Use docker.io for Docker Hub if empty | |
#REGISTRY: ghcr.io | |
REGISTRY: docker.io | |
# github.repository as <account>/<repo> | |
IMAGE_NAME: ${{ github.repository }} | |
TAG_LATEST: bullseye | |
OPENAPI_PKG: sample | |
MODULE_DIR: samples.1simple | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: adjust image name from ${{ github.repository }} | |
run: | | |
echo IMAGE_NAME=${{ env.IMAGE_NAME }} | sed 's/docker-//' >> $GITHUB_ENV | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Generates a openapi.yaml file based on the FastAPI project. | |
# https://github.com/column-st/fastapi-openapi-specs-action | |
- name: Generate OpenAPI file | |
uses: column-street/[email protected] | |
with: | |
moduleDir: ${{ env.MODULE_DIR }} | |
fileName: main.py | |
appName: app | |
outputName: ${{ env.OPENAPI_PKG }}-openapi | |
fastapiVersioning: v1 | |
- name: Generate Python Client | |
uses: openapi-generators/[email protected] | |
with: | |
generator: python | |
openapi-file: ${{ env.OPENAPI_PKG }}-openapi.yaml | |
command-args: --package-name ${{ env.OPENAPI_PKG }} -o ${{ env.OPENAPI_PKG }}-client --generate-alias-as-model | |
- name: print all files (after codegen) | |
run: | | |
find . | grep -v /.git/ | xargs ls -lrtd |