rework pwa cc
Build and Publish Docker Image / build-and-push-image (push) Successful in 1m48s

This commit is contained in:
Zed
2026-07-11 02:01:08 +02:00
parent 9ae37f98ed
commit ce1db937f2
52 changed files with 5210 additions and 48 deletions
+14 -4
View File
@@ -21,14 +21,24 @@ jobs:
- name: Log in to the Container registry
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login ${{ env.REGISTRY }} -u "${{ gitea.actor }}" --password-stdin
# Build standard using docker CLI
- name: Build Docker image
# Frontend image (nginx + SPA)
- name: Build frontend Docker image
run: |
LOWERCASE_IMAGE=$(echo "${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
docker build -t ${{ env.REGISTRY }}/$LOWERCASE_IMAGE:latest .
# Push directly using docker push
- name: Push Docker image
- name: Push frontend Docker image
run: |
LOWERCASE_IMAGE=$(echo "${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
docker push ${{ env.REGISTRY }}/$LOWERCASE_IMAGE:latest
# Backend image (Express API)
- name: Build backend Docker image
run: |
LOWERCASE_IMAGE=$(echo "${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
docker build -t ${{ env.REGISTRY }}/$LOWERCASE_IMAGE-backend:latest ./server
- name: Push backend Docker image
run: |
LOWERCASE_IMAGE=$(echo "${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
docker push ${{ env.REGISTRY }}/$LOWERCASE_IMAGE-backend:latest