Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Nov 6, 2024
1 parent ee7da92 commit cace2c2
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/publish-generator-fastapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,38 @@ jobs:
# Manually publish and register generators
# The logic is identical to the step above, but could not find a good way to work with the matrix AND manual trigger in one job
publish-manually:
publish-fastapi:
runs-on: ubuntu-latest
steps:
- name: Checkout repo at current ref
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 2
fetch-depth: 0

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install
uses: ./.github/actions/install
working-directory: ./generators/python
run: poetry install

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: fernapi
password: ${{ secrets.FERN_API_DOCKERHUB_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Run publish
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
DOCKER_USERNAME: fernapi
DOCKER_PASSWORD: ${{ secrets.FERN_API_DOCKERHUB_PASSWORD }}
run: |
pnpm seed:local publish generator fastapi --ver 1.6.0-rc1 --log-level debug
pnpm seed:local register generator --generators fastapi
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./generators/python
file: ./generators/python/fastapi/Dockerfile
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=min
push: true
labels: version=1.6.0-rc1
tags: fernapi/fern-fastapi-server:1.6.0-rc1

0 comments on commit cace2c2

Please sign in to comment.