Files
API/.gitea/workflows/main.yml
Zombori Péter 8fab10d4f5 test cicd
2025-11-17 11:08:07 +01:00

33 lines
875 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Build and Push API
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# 1. Smoke test csak ellenőrizzük, hogy látjuk a docker socketet
- name: Docker smoke test
run: docker ps -a
# 2. docker login itt majd a repó Secretjeit fogjuk használni
- name: Docker login
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.petyi.eu -u "${{ secrets.REGISTRY_USER }}" --password-stdin
# 3. docker build egyszerűen latest taggel
- name: Docker build
run: |
docker build -t git.petyi.eu/szakdolgozat/api:latest .
# 4. docker push ugyanaz az image
- name: Docker push
run: |
docker push git.petyi.eu/szakdolgozat/api:latest