This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user