4 Commits

Author SHA1 Message Date
Millaguie
436a7e25d4 fix(ci): use REGISTRY secrets for container registry login
Some checks failed
Auto Tag on Merge to Main / auto-tag (push) Failing after 2s
CI - Lint and Build / build-frontend (push) Successful in 14s
Release - Build and Publish Docker Images / build-and-publish (push) Successful in 1m9s
CI - Lint and Build / lint-backend (push) Successful in 14s
CI - Lint and Build / lint-frontend (push) Successful in 13s
CI - Lint and Build / docker-build-test (push) Successful in 36s
GITHUB_TOKEN doesn't have container registry permissions in Gitea.
Use dedicated REGISTRY_USERNAME and REGISTRY_PASSWORD secrets.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 00:43:42 +01:00
Millaguie
24a08e405f fix(ci): use hardcoded registry URL without https prefix
Some checks failed
Auto Tag on Merge to Main / auto-tag (push) Successful in 2s
CI - Lint and Build / lint-backend (push) Successful in 18s
CI - Lint and Build / lint-frontend (push) Successful in 11s
Release - Build and Publish Docker Images / build-and-publish (push) Failing after 9s
CI - Lint and Build / build-frontend (push) Successful in 14s
CI - Lint and Build / docker-build-test (push) Has been cancelled
Docker login requires registry URL without protocol prefix.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 00:42:09 +01:00
Millaguie
c9e6c1970c fix(ci): remove npm cache dependency on package-lock.json
Some checks failed
Auto Tag on Merge to Main / auto-tag (push) Successful in 3s
CI - Lint and Build / lint-backend (push) Successful in 18s
CI - Lint and Build / lint-frontend (push) Successful in 15s
CI - Lint and Build / build-frontend (push) Successful in 14s
CI - Lint and Build / docker-build-test (push) Successful in 1m38s
Release - Build and Publish Docker Images / build-and-publish (push) Failing after 21s
Use npm install instead of npm ci since package-lock.json files
are not committed to the repository.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 00:34:10 +01:00
Millaguie
b9a7942962 fix(ci): use GITHUB_TOKEN for container registry authentication
Some checks failed
Auto Tag on Merge to Main / auto-tag (push) Successful in 3s
CI - Lint and Build / lint-backend (push) Failing after 3s
CI - Lint and Build / lint-frontend (push) Failing after 3s
CI - Lint and Build / build-frontend (push) Has been skipped
CI - Lint and Build / docker-build-test (push) Has been skipped
Use built-in GITHUB_TOKEN instead of custom secrets for Gitea container
registry login. This is more secure and doesn't require manual token
management.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 00:28:48 +01:00
2 changed files with 11 additions and 17 deletions

View File

@@ -20,13 +20,11 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- name: Install backend dependencies - name: Install backend dependencies
run: | run: |
cd backend cd backend
npm ci npm install
- name: Run ESLint (backend) - name: Run ESLint (backend)
run: | run: |
@@ -48,13 +46,11 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies - name: Install frontend dependencies
run: | run: |
cd frontend cd frontend
npm ci npm install
- name: Run ESLint (frontend) - name: Run ESLint (frontend)
run: | run: |
@@ -72,13 +68,11 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies - name: Install frontend dependencies
run: | run: |
cd frontend cd frontend
npm ci npm install
- name: Build frontend - name: Build frontend
run: | run: |

View File

@@ -29,7 +29,7 @@ jobs:
- name: Login to Gitea Container Registry - name: Login to Gitea Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ secrets.REGISTRY_URL }} registry: tea.millaguie.net
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }} password: ${{ secrets.REGISTRY_PASSWORD }}
@@ -43,8 +43,8 @@ jobs:
BUILD_DATE=${{ steps.date.outputs.date }} BUILD_DATE=${{ steps.date.outputs.date }}
GIT_COMMIT=${{ github.sha }} GIT_COMMIT=${{ github.sha }}
tags: | tags: |
${{ secrets.REGISTRY_URL }}/trenes/backend:${{ steps.version.outputs.version }} tea.millaguie.net/millaguie/trenes-backend:${{ steps.version.outputs.version }}
${{ secrets.REGISTRY_URL }}/trenes/backend:latest tea.millaguie.net/millaguie/trenes-backend:latest
provenance: false provenance: false
sbom: false sbom: false
@@ -60,17 +60,17 @@ jobs:
BUILD_DATE=${{ steps.date.outputs.date }} BUILD_DATE=${{ steps.date.outputs.date }}
GIT_COMMIT=${{ github.sha }} GIT_COMMIT=${{ github.sha }}
tags: | tags: |
${{ secrets.REGISTRY_URL }}/trenes/frontend:${{ steps.version.outputs.version }} tea.millaguie.net/millaguie/trenes-frontend:${{ steps.version.outputs.version }}
${{ secrets.REGISTRY_URL }}/trenes/frontend:latest tea.millaguie.net/millaguie/trenes-frontend:latest
provenance: false provenance: false
sbom: false sbom: false
- name: Summary - name: Summary
run: | run: |
echo "### Docker Images Published 🐳" >> $GITHUB_STEP_SUMMARY echo "### Docker Images Published" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
echo "**Version:** ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY echo "**Version:** ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
echo "**Images:**" >> $GITHUB_STEP_SUMMARY echo "**Images:**" >> $GITHUB_STEP_SUMMARY
echo "- \`${{ secrets.REGISTRY_URL }}/trenes/backend:${{ steps.version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY echo "- tea.millaguie.net/millaguie/trenes-backend:${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "- \`${{ secrets.REGISTRY_URL }}/trenes/frontend:${{ steps.version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY echo "- tea.millaguie.net/millaguie/trenes-frontend:${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY