Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m18s
32 lines
850 B
YAML
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 }} |