From a133729ea7147bf70303d0ea392b742c2acc0083 Mon Sep 17 00:00:00 2001 From: sureshhewabi Date: Tue, 3 Oct 2023 13:53:35 +0100 Subject: [PATCH] Image name change --- .github/workflows/github.yml | 8 +++++--- app/routes/main.py | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index a9bcc9c..3f491a2 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -43,8 +43,10 @@ jobs: context: . push: true tags: | - ghcr.io/${{ vars.API_GITHUB_REPOSITORY }}:latest - ghcr.io/${{ vars.API_GITHUB_REPOSITORY }}:${{ env.IMAGE_TAG }} +# ghcr.io/${{ vars.API_GITHUB_REPOSITORY }}:latest +# ghcr.io/${{ vars.API_GITHUB_REPOSITORY }}:${{ env.IMAGE_TAG }} + ghcr.io/$GITHUB_REPOSITORY/$IMAGE_NAME:$GITHUB_SHA + ghcr.io/$GITHUB_REPOSITORY/$IMAGE_NAME:latest deploy: needs: docker_build @@ -63,7 +65,7 @@ jobs: k8s_replicas: ${{ vars.K8S_REPLICAS }} K8S_NAMESPACE: ${{ vars.K8S_NAMESPACE }} DATABASE_INI: ${{ vars.DATABASE_INI }} - IMAGE: ghcr.io/${{ vars.API_GITHUB_REPOSITORY }}:latest + IMAGE: ghcr.io/$GITHUB_REPOSITORY/$IMAGE_NAME:$GITHUB_SHA steps: - name: Checkout repository diff --git a/app/routes/main.py b/app/routes/main.py index 1d7cd65..02dfee0 100644 --- a/app/routes/main.py +++ b/app/routes/main.py @@ -1,6 +1,4 @@ -from fastapi import APIRouter, Depends -from sqlalchemy.orm import Session -from app.routes.index import get_session +from fastapi import APIRouter from process_dataset import convert_pxd_accession_from_pride import os