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

34 lines
1.2 KiB
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: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Убираем driver-opts: network=host, чтобы вернуть интернет в билд
- name: Log in to Gitea Registry
run: |
# Прописываем локальный IP в систему раннера
sudo echo "192.168.50.55 dungeonsiege.synology.me" | sudo tee -a /etc/hosts
echo "${{ secrets.GIT_TOKEN }}" | docker login dungeonsiege.synology.me -u ${{ secrets.GIT_USERNAME }} --password-stdin
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
# Убираем network: host отсюда, чтобы apk add работал через bridge
# Но оставляем add-hosts, чтобы шаг PUSH знал, куда нести образ
add-hosts: |
dungeonsiege.synology.me:192.168.50.55
tags: |
dungeonsiege.synology.me/poignatov/play-life:latest