test
Golang lint / GoLint (push) Successful in 3m15s
Build and push image / docker (push) Failing after 3m19s
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
2026-04-23 13:36:35 +03:00
parent efec9fe5c5
commit 9a0e1fceea
4 changed files with 79 additions and 17 deletions
+40
View File
@@ -0,0 +1,40 @@
name: Build and push image
run-name: Building and pushing Docker image for ${{ gitea.repository }} by ${{ gitea.actor }} 🚀
on:
push:
branches: [main]
tags: ["v*"]
jobs:
docker:
runs-on: linux-latest
steps:
- uses: actions/checkout@v6
- name: Set up Buildx
uses: docker/setup-buildx-action@v4
- name: Login to custom registry
uses: docker/login-action@v4
with:
registry: git.scuroneko.dev
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
push: true
tags: git.scuroneko.dev/scuroneko/runner-test:${{ gitea.ref_name }}
- name: Build and push tag image
if: startsWith(gitea.ref, 'refs/tags/')
uses: docker/build-push-action@v7
with:
context: .
push: true
tags: |
git.scuroneko.dev/scuroneko/runner-test:${{ gitea.ref_name }}
git.scuroneko.dev/scuroneko/runner-test:latest