Skip to content

Commit

Permalink
deploy #2
Browse files Browse the repository at this point in the history
  • Loading branch information
iyoubee committed Jun 7, 2024
1 parent f2b507a commit 7056040
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install requests tqdm
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

Expand All @@ -40,6 +50,9 @@ jobs:
run: |
gcloud --quiet auth configure-docker $GCP_REGION-docker.pkg.dev
- name: Run file download script
run: python download.py

- name: Build and push Docker image
run: |
docker build -t $GCP_REGION-docker.pkg.dev/$GCP_PROJECT_ID/ulascan/$APP_NAME:latest .
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ WORKDIR /app
COPY . /app

# Install any dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt \
&& python download.py
RUN pip install --no-cache-dir -r requirements.txt

# Expose port 5000 to the outside world
EXPOSE 5000
Expand Down

0 comments on commit 7056040

Please sign in to comment.