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

32 lines
850 B
YAML

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 Container Registry
uses: docker/login-action@v3
with:
# Теперь используем ваш красивый домен
registry: dungeonsiege.synology.me
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
dungeonsiege.synology.me/poignatov/play-life:latest
dungeonsiege.synology.me/poignatov/play-life:${{ github.sha }}