Files
sign-pdf-worker/.gitea/workflows/build-image.yaml
T
2026-11-18 02:19:05 +00:00

37 lines
1.1 KiB
YAML

name: Build image and push it to registry
on:
push:
branches:
- main
schedule:
# every three of the month, at 04:05
- cron: '5 4 3 * *'
jobs:
# Build job
build:
runs-on: cth-ubuntu-latest
steps:
- name: Check out repository
uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Login to registry
uses: https://github.com/docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: 'h3m6q87t.gra7.container-registry.ovh.net'
- name: Build and push
uses: https://github.com/docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ./pythonProject
file: ./pythonProject/Dockerfile
push: true
tags: 'h3m6q87t.gra7.container-registry.ovh.net/sign-pdf-worker/worker:latest'