Initial commit: static landing page with CI/CD
build / build-and-push (push) Failing after 1s

This commit is contained in:
nick
2026-07-12 05:53:08 +08:00
commit bc816c0925
5 changed files with 112 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
name: build
on:
push:
branches: [main]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Gitea container registry
run: echo "${{ secrets.CI_REGISTRY_TOKEN }}" | docker login gitea.niq-dev.com -u "${{ gitea.actor }}" --password-stdin
- name: Build image
run: docker build -t gitea.niq-dev.com/gitea_admin/landing:${{ gitea.sha }} -t gitea.niq-dev.com/gitea_admin/landing:latest .
- name: Push image
run: |
docker push gitea.niq-dev.com/gitea_admin/landing:${{ gitea.sha }}
docker push gitea.niq-dev.com/gitea_admin/landing:latest