Files
Central/.gitea/workflows/build-docker.yml

31 lines
807 B
YAML

name: Build & Push Docker Image
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.malio.fr -u "${{ gitea.repository_owner }}" --password-stdin
- name: Build Docker image
run: |
docker build \
-f infra/prod/Dockerfile \
-t gitea.malio.fr/malio-dev/central:${{ github.ref_name }} \
-t gitea.malio.fr/malio-dev/central:latest \
.
- name: Push Docker image
run: |
docker push gitea.malio.fr/malio-dev/central:${{ github.ref_name }}
docker push gitea.malio.fr/malio-dev/central:latest