1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-20 12:33:14 +00:00
This commit is contained in:
2025-07-04 10:45:04 +02:00
parent 3a4d910de5
commit b9e9444327
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ jobs:
OWNER: ${{ github.repository_owner }} OWNER: ${{ github.repository_owner }}
PACKAGE: xslt-playground-backend PACKAGE: xslt-playground-backend
run: | run: |
gh api -X PATCH /user/packages/container/$PACKAGE --field visibility=public gh api -X PATCH /users/alexandrev/packages/container/$PACKAGE --field visibility=public
- name: Build and push frontend image - name: Build and push frontend image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@@ -53,5 +53,5 @@ jobs:
OWNER: ${{ github.repository_owner }} OWNER: ${{ github.repository_owner }}
PACKAGE: xslt-playground-frontend PACKAGE: xslt-playground-frontend
run: | run: |
gh api -X PATCH /user/packages/container/$PACKAGE --field visibility=public gh api -X PATCH /users/alexandrev/packages/container/$PACKAGE --field visibility=public
+5 -2
View File
@@ -3,6 +3,7 @@ FRONTEND_DIR=frontend
BACKEND_IMAGE=xslt-playground-backend BACKEND_IMAGE=xslt-playground-backend
FRONTEND_IMAGE=xslt-playground-frontend FRONTEND_IMAGE=xslt-playground-frontend
.PHONY: all backend-build frontend-build backend-image frontend-image compose-up compose-down .PHONY: all backend-build frontend-build backend-image frontend-image compose-up compose-down
all: backend-build frontend-build backend-image frontend-image compose-up all: backend-build frontend-build backend-image frontend-image compose-up
@@ -14,10 +15,12 @@ frontend-build:
cd $(FRONTEND_DIR) && npm install && npm run build cd $(FRONTEND_DIR) && npm install && npm run build
backend-image: backend-image:
docker build -t $(BACKEND_IMAGE) $(BACKEND_DIR) docker build --platform linux/amd64 -t $(BACKEND_IMAGE) $(BACKEND_DIR)
docker tag $(BACKEND_IMAGE):latest ghcr.io/alexandrev/$(BACKEND_IMAGE):latest
frontend-image: frontend-image:
docker build -t $(FRONTEND_IMAGE) $(FRONTEND_DIR) docker build --platform linux/amd64 -t $(FRONTEND_IMAGE) $(FRONTEND_DIR)
docker tag $(FRONTEND_IMAGE):latest ghcr.io/alexandrev/$(FRONTEND_IMAGE):latest
compose-up: compose-up:
docker compose -f docker-compose.local.yml up docker compose -f docker-compose.local.yml up