Omar Oughriss b4ac9d82b4
Some checks failed
Build and Push to Registry / build-and-push (push) Failing after 21s
test
2025-06-30 14:30:38 +02:00

35 lines
869 B
YAML

name: Build and Push to Registry
on:
push:
branches: [ test ]
env:
REGISTRY: git.4nkweb.com
IMAGE_NAME: 4nk/lecoffre-back-mini
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ secrets.USER }}
password: ${{ secrets.TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }}