test_ci_cd
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 49s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
crutoboy
2026-05-22 10:23:26 +00:00
parent d0c7b77387
commit 6facedb04f
2 changed files with 10 additions and 6 deletions

View File

@@ -1,9 +1,11 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
# on:
# push:
# branches:
# - main
on: [push]
jobs:
build-and-push:
@@ -19,7 +21,7 @@ jobs:
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ gitea.hostname }} # автоматически подставляется Gitea
registry: ${{ gitea.server_url }} # автоматически подставляется Gitea
username: ${{ gitea.actor }}
password: ${{ secrets.GITEATOKEN }}
@@ -27,7 +29,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ gitea.hostname }}/${{ gitea.repository }}
images: ${{ gitea.server_url }}/${{ gitea.repository }}
tags: |
type=sha
type=raw,value=latest

View File

@@ -7,3 +7,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: echo "${{ gitea.server_url }}"
- name: Dump Gitea context
run: echo "${{ toJSON(gitea) }}"