Files
API/.gitea/workflows/main.yml
Zombori Péter 539b5f909c
All checks were successful
Build and Push API / build-and-push (push) Successful in 34s
test cicd
2025-11-17 11:12:56 +01:00

33 lines
877 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:
- master
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