Migrate workflow from .github to .gitea/workflows
Build and Push Docker Image / build-and-push (push) Successful in 3m56s
Build and Push Docker Image / build-and-push (push) Successful in 3m56s
Switch registry from ghcr.io to git.necloud.us and update secrets to REGISTRY_USER / REGISTRY_TOKEN for Gitea Actions compatibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
44b481e177
commit
74c4530060
1 file changed
+5
-8
@@ -0,0 +1,28 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.necloud.us
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: git.necloud.us/nate/homeschool:latest
|
||||
Reference in new issue
Block a user