Compare commits

...

24 Commits

Author SHA1 Message Date
6072f79697 python version avoid vulnerabilities
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m26s
2025-02-03 03:22:55 +00:00
58fa7569ff dd
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m41s
2025-01-06 22:56:50 -05:00
0cdcb2ee40 ll
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m6s
2025-01-06 22:43:25 -05:00
35d02cd885 ff
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m48s
2025-01-06 22:38:02 -05:00
0690858dd6 fdsaa
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m38s
2025-01-06 22:23:18 -05:00
0a8b995cc1 fix typo
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m56s
2025-01-06 22:19:58 -05:00
cdfff2161a hhh 2025-01-06 22:18:53 -05:00
bf62a7c6d0 separate 2025-01-06 22:17:35 -05:00
0eb689cef5 jwt issue
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m5s
2025-01-06 22:11:04 -05:00
514ce1e83b username
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m5s
2025-01-06 21:59:57 -05:00
2db7f7f2e0 oauth
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m7s
2025-01-06 21:47:02 -05:00
75313bcdf3 fix typo
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m5s
2025-01-06 21:10:54 -05:00
cf360643df refactor
Some checks failed
Build and Push Docker Image / build (push) Failing after 25s
2025-01-06 21:08:54 -05:00
c28689fe03 info
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m59s
2025-01-05 23:13:19 -05:00
3817378632 s
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m0s
2025-01-05 23:04:05 -05:00
ff9fde556a fix registry
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m18s
2025-01-05 22:46:59 -05:00
6c1444b6dc test secret
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m13s
2025-01-05 22:22:46 -05:00
c887e64557 fix tag
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m2s
2025-01-05 21:36:45 -05:00
d80ac02e77 fix gitea tag
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m1s
2025-01-05 21:28:19 -05:00
9035fab218 fix variables
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m11s
2025-01-05 21:17:29 -05:00
bc57e3c632 use action instead
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m57s
2025-01-05 21:10:14 -05:00
d9940d045e merge jobs
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m58s
2025-01-05 21:01:50 -05:00
56f275cdb7 Merge branch 'main' of https://git.rehounou.ca/remi/cal_heatmap
Some checks failed
Build and Push Docker Image / build (push) Successful in 2m36s
Build and Push Docker Image / push_to_gitea (push) Failing after 54s
2025-01-03 11:44:39 -05:00
27973ac1a0 fix pip chill issue 2025-01-03 11:43:14 -05:00
2 changed files with 22 additions and 18 deletions

View File

@ -11,7 +11,9 @@ jobs:
env:
GITEA_SERVER: https://git.rehounou.ca
GITEA_REGISTRY: git.rehounou.ca
GITEA_TOKEN: ${{ secrets.REPO_GITEA_TOKEN }}
PROJECT_NAME: cal_heatmap
steps:
- name: Checkout repository
@ -26,26 +28,28 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.GITEA_REGISTRY }}
username: ${{ secrets.REPO_USERNAME }}
password: ${{ secrets.REPO_GITEA_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/cal_heatmap:latest
tags: |
${{ secrets.DOCKER_USERNAME }}/cal_heatmap:latest
${{ secrets.DOCKER_USERNAME }}/cal_heatmap:1.0.0
push_to_gitea:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Push to Gitea
env:
GITEA_SERVER: ${{ secrets.ADDRESS_GITEA_SERVER }}
GITEA_TOKEN: ${{ secrets.REPO_GITEA_TOKEN }}
- name: Build and Push Docker Image
run: |
docker tag ${{ secrets.DOCKER_USERNAME }}/cal_heatmap:latest ${GITEA_SERVER}/my-repo/cal_heatmap:latest
docker push ${GITEA_SERVER}/my-repo/cal_heatmap:latest
docker tag ${{ secrets.DOCKER_USERNAME }}/cal_heatmap:latest git.rehounou.ca/remi/cal_heatmap:1.0.0
docker push git.rehounou.ca/remi/cal_heatmap:latest
docker push git.rehounou.ca/remi/cal_heatmap:1.0.0

View File

@ -1,5 +1,5 @@
# Use the official Python image as a base image
FROM python:3.9-slim
FROM python:3-slim
# Set the working directory in the container
WORKDIR /app
@ -11,7 +11,7 @@ RUN pip install --no-cache-dir pip-chill
COPY . /app
# Generate requirements.txt with pip-chill
RUN pip-chill > requirements.txt
#RUN pip-chill > requirements.txt
# Install the required packages based on the newly created requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
@ -23,4 +23,4 @@ RUN mkdir /config
EXPOSE 8501
# Command to run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
CMD ["python","-m","streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]