lms/.gitea/workflows/docker.yml
Ahmed Darrazi a11eeb94c7
Some checks are pending
Build & Push Docker Image / docker (push) Waiting to run
bugfixes
2025-12-17 13:16:04 +01:00

32 lines
787 B
YAML

name: Build & Push Docker Image
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Gitea Container Registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.cloudarix.de \
-u "${{ secrets.REGISTRY_USER }}" \
--password-stdin
- name: Build Docker image
run: |
docker build \
-t git.cloudarix.de/ahmido/lms:${{ github.sha }} \
-t git.cloudarix.de/ahmido/lms:latest \
.
- name: Push Docker image
run: |
docker push git.cloudarix.de/ahmido/lms:${{ github.sha }}
docker push git.cloudarix.de/ahmido/lms:latest