Add gitea-ci for building images and push to registry
This commit is contained in:
parent
5f7cb96f97
commit
800d065167
24
.gitea/workflows/gitea-ci.yml
Normal file
24
.gitea/workflows/gitea-ci.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Build and Push Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Log in to Gitea Registry
|
||||||
|
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.udochudo.ru -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin
|
||||||
|
|
||||||
|
- name: Build and Push Docker Image
|
||||||
|
run: |
|
||||||
|
docker build -t git.udochudo.ru/udochudo/usi:latest .
|
||||||
|
docker push git.udochudo.ru/udochudo/usi:latest
|
||||||
@ -1,9 +1,9 @@
|
|||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
telezab-bot:
|
usi-bot:
|
||||||
build: .
|
build: .
|
||||||
container_name: telezab-bot
|
container_name: usi-bot
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user