Skip to content

Commit

Permalink
Move container to use ubuntu instead of rhel, trigger render deploy f…
Browse files Browse the repository at this point in the history
…rom webhook using secret
  • Loading branch information
sbettid committed Jan 5, 2024
1 parent 092ae6d commit 3826800
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ jobs:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

- name: Trigger deploy on Render
uses: distributhor/workflow-webhook@v3
with:
webhook_url: ${{ secrets.RENDER_WEBHOOK }}
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM registry.access.redhat.com/ubi9/ubi:9.3
FROM ubuntu:22.04

WORKDIR /app

ENV PYTHON_VERSION=3.9

COPY . .

RUN dnf install -y python3.9 python3-pip
RUN apt update -y && apt install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa

RUN ln -fs //usr/share/zoneinfo/Europe/Rome /etc/localtime && apt install -y python3.9-distutils python3.9 python3-pip

RUN python3.9 -m pip install -r requirements.txt --extra-index-url https://google-coral.github.io/py-repo/

Expand Down

0 comments on commit 3826800

Please sign in to comment.