refactor: standardize workflow name and move env to workflow level
CI / Test (push) Failing after 27s
CI / Build & Push Image (push) Skipped

- Change name to 'CI' (consistent with template)
- Move REGISTRY, IMAGE to workflow-level env (shared by both jobs)
- Compact 'on:' branches syntax
- Maintain all service-specific features (Delete old latest, build-arg)

No functional change, pure standardization to match template pattern.
This commit is contained in:
Story Crater Bot
2026-09-06 23:21:54 -07:00
parent 6e1e7506c3
commit 7389b977b4
+7 -8
View File
@@ -1,12 +1,14 @@
name: Build & Push Portfolio Image
name: CI
on:
push:
branches:
- main
branches: [main]
pull_request:
branches:
- main
branches: [main]
env:
REGISTRY: forgejo.riotpiao.com
IMAGE: forgejo.riotpiao.com/rock/portfolio
jobs:
test:
@@ -30,9 +32,6 @@ jobs:
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: node
env:
REGISTRY: forgejo.riotpiao.com
IMAGE: forgejo.riotpiao.com/rock/portfolio
steps:
- name: Install Node.js and Docker
run: |