fix(ci): use gitea instead
Some checks failed
CI Pipeline / Build and Push Docker Image (push) Failing after 20s

This commit is contained in:
Aleksandr Tcitlionok
2024-12-11 10:23:17 +00:00
parent 87ab5bbc2a
commit 98c7e13914

47
.gitea/workflows/ci.yaml Normal file
View File

@@ -0,0 +1,47 @@
name: CI Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
IMAGE_NAME: terghalin/metalcheck-backend
jobs:
build-and-push:
name: Build and Push Docker Image
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 the Container registry
uses: docker/login-action@v3
with:
registry: ${{ vars.IMAGE_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
push: true
tags: |
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}