Compare commits
22 Commits
56f275cdb7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6072f79697 | |||
| 58fa7569ff | |||
| 0cdcb2ee40 | |||
| 35d02cd885 | |||
| 0690858dd6 | |||
| 0a8b995cc1 | |||
| cdfff2161a | |||
| bf62a7c6d0 | |||
| 0eb689cef5 | |||
| 514ce1e83b | |||
| 2db7f7f2e0 | |||
| 75313bcdf3 | |||
| cf360643df | |||
| c28689fe03 | |||
| 3817378632 | |||
| ff9fde556a | |||
| 6c1444b6dc | |||
| c887e64557 | |||
| d80ac02e77 | |||
| 9035fab218 | |||
| bc57e3c632 | |||
| d9940d045e |
@@ -11,7 +11,9 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
GITEA_SERVER: https://git.rehounou.ca
|
GITEA_SERVER: https://git.rehounou.ca
|
||||||
|
GITEA_REGISTRY: git.rehounou.ca
|
||||||
GITEA_TOKEN: ${{ secrets.REPO_GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.REPO_GITEA_TOKEN }}
|
||||||
|
PROJECT_NAME: cal_heatmap
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -26,26 +28,28 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
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
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
env:
|
||||||
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
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:
|
- name: Build and Push Docker Image
|
||||||
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 }}
|
|
||||||
run: |
|
run: |
|
||||||
docker tag ${{ secrets.DOCKER_USERNAME }}/cal_heatmap:latest ${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 ${GITEA_SERVER}/my-repo/cal_heatmap:latest
|
docker push git.rehounou.ca/remi/cal_heatmap:latest
|
||||||
|
docker push git.rehounou.ca/remi/cal_heatmap:1.0.0
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# Use the official Python image as a base image
|
# 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
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user