Files
play-life/.gitea/workflows/build-and-push.yml
poignatov 6ff6715d71
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6s
Update workflow configuration
2025-12-30 20:01:43 +03:00

28 lines
926 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 Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to Gitea Registry
run: |
# Используем внутренний IP, но через протокол HTTP явно.
# Если это упадет с ошибкой HTTPS, значит используем План Б ниже.
echo "${{ secrets.GIT_TOKEN }}" | docker login http://172.17.0.6:3000 -u ${{ secrets.GIT_USERNAME }} --password-stdin
- name: Build and Push
run: |
# Собираем образ с тегом внутреннего IP
docker build -t 172.17.0.6:3000/poignatov/play-life:latest .
# Пушим напрямую
docker push 172.17.0.6:3000/poignatov/play-life:latest