Author SHA1 Message Date
Story Crater Bot 22f5afdb58 fix: use origin/main workflow with env vars for registry credentials
CI / Test (pull_request) Failing after 28s
CI / Build & Push Image (pull_request) Skipped
Resolved merge conflicts by using current origin/main workflow which:
- Includes test job (npm ci + npm test)
- Has delete old latest image step
- Uses --build-arg for COMMIT_SHA
- Uses env vars for registry credentials (FORGEJO_REGISTRY_USER/TOKEN)

All features from main preserved, registry login fixed.
2026-09-06 23:40:51 -07:00
Story Crater Bot b3e5d63e86 fix: use env vars for docker registry credentials 2026-09-06 23:37:56 -07:00
Story Crater Bot 1f66db0ba4 fix: validate registry credentials before docker login
Add credential validation step to catch missing secrets early with clear error message.
Use direct secret injection (not env vars) for better security.
Isolate docker config to /tmp/docker-config.
2026-09-06 23:34:54 -07:00
+7 -8
View File
@@ -1,12 +1,14 @@
name: Build & Push Portfolio Image name: CI
on: on:
push: push:
branches: branches: [main]
- main
pull_request: pull_request:
branches: branches: [main]
- main
env:
REGISTRY: forgejo.riotpiao.com
IMAGE: forgejo.riotpiao.com/rock/portfolio
jobs: jobs:
test: test:
@@ -30,9 +32,6 @@ jobs:
needs: test needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: node runs-on: node
env:
REGISTRY: forgejo.riotpiao.com
IMAGE: forgejo.riotpiao.com/rock/portfolio
steps: steps:
- name: Install Node.js and Docker - name: Install Node.js and Docker
run: | run: |