Update workflow configuration
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 19s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 19s
This commit is contained in:
@@ -2,21 +2,24 @@ name: Build and Push Docker Image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ main ]
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Add domain to hosts
|
||||||
|
run: |
|
||||||
|
# Принудительно направляем домен на внутренний IP контейнера Gitea
|
||||||
|
# Это заставит Docker идти по HTTPS, но сразу на 172.17.0.6
|
||||||
|
sudo echo "172.17.0.6 dungeonsiege.synology.me" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
|
- name: Log in to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
# Теперь используем ваш красивый домен
|
|
||||||
registry: dungeonsiege.synology.me
|
registry: dungeonsiege.synology.me
|
||||||
username: ${{ secrets.GIT_USERNAME }}
|
username: ${{ secrets.GIT_USERNAME }}
|
||||||
password: ${{ secrets.GIT_TOKEN }}
|
password: ${{ secrets.GIT_TOKEN }}
|
||||||
@@ -25,8 +28,9 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
|
||||||
push: true
|
push: true
|
||||||
|
# Важно: Gitea Registry работает на порту 443 через Reverse Proxy,
|
||||||
|
# но внутри Gitea слушает 3000.
|
||||||
|
# Если вы используете домен в тэге, Docker пойдет на 443.
|
||||||
tags: |
|
tags: |
|
||||||
dungeonsiege.synology.me/poignatov/play-life:latest
|
dungeonsiege.synology.me/poignatov/play-life:latest
|
||||||
dungeonsiege.synology.me/poignatov/play-life:${{ github.sha }}
|
|
||||||
Reference in New Issue
Block a user