diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 870c89c..1683670 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -14,33 +14,6 @@ jobs: steps: - uses: actions/checkout@v3 - # - name: Set up Python - # uses: actions/setup-python@v4 - # with: - # python-version: "3.10" - - # - name: Start MongoDB - # uses: supercharge/mongodb-github-action@1.8.0 - # with: - # mongodb-version: 5.0.5 - # mongodb-replica-set: test-rs - # mongodb-port: 27017 - - # - name: Install dependencies - # run: pip install -r requirements.txt - - # - name: Build package - # run: pip install -e . - - # - name: Generate kaggle.json - # env: - # KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }} - # KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }} - # run: python src/utils/generate_kaggle_keys.py - - # - name: Build pipeline - # run: python src/utils/build_pipeline.py - - name: DockerHub Login uses: docker/login-action@v2.1.0 with: @@ -56,7 +29,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/passwordometer-api:1.0.1 + tags: ${{ secrets.DOCKERHUB_USERNAME }}/passwordometer-api:1.1.0 secrets: | "KAGGLE_USERNAME=${{ secrets.KAGGLE_USERNAME }}" "KAGGLE_KEY=${{ secrets.KAGGLE_KEY }}" @@ -64,24 +37,6 @@ jobs: #? --------------------------------------------------------------------------- - # - name: Build the Docker image - # # run: docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} - # run: docker build . --file Dockerfile --env KAGGLE_USERNAME=${{ secrets.KAGGLE_USERNAME }} KAGGLE_KEY=${{ secrets.KAGGLE_KEY }} MONGODB_CONN_STRING=${{ secrets.MONGODB_CONN_STRING }} --tag ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} --port 80:80 - # env: - # IMAGE_NAME: passwordometer-api - # TAG: 1.0.1 - # KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }} - # KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }} - # MONGODB_CONN_STRING: ${{ secrets.MONGODB_CONN_STRING }} - - # - name: Docker Push - # run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.TAG }} - # env: - # IMAGE_NAME: passwordometer-api - # TAG: 1.0.1 - - #? --------------------------------------------------------------------------- - # - name: Login in Github # run: | # echo ${{ secrets.API_GITHUB_TOKEN }} | docker login ghcr.io -u ${{ secrets.API_GITHUB_TOKEN }} --password-stdin diff --git a/Dockerfile b/Dockerfile index 609cac8..8eedbed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,10 +32,6 @@ RUN --mount=type=secret,id=KAGGLE_USERNAME \ export MONGODB_CONN_STRING=$(cat /run/secrets/MONGODB_CONN_STRING) && \ python src/utils/build_pipeline.py -# RUN python src/utils/generate_kaggle_keys.py - -# RUN python src/utils/build_pipeline.py - EXPOSE 80 CMD ["uvicorn", "src.api.app:app", "--workers", "4", "--host", "0.0.0.0", "--port", "80"] diff --git a/setup.py b/setup.py index d828833..563b254 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ def get_long_description(file_path: str = "README.md") -> str: setup( name="Passwordometer", - version="1.0.0", + version="1.1.0", author="Karthik Udyawar", author_email="karthikajitudy@gmail.com", license="MIT",