mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-20 04:23:16 +00:00
+1
This commit is contained in:
@@ -38,7 +38,7 @@ jobs:
|
||||
OWNER: ${{ github.repository_owner }}
|
||||
PACKAGE: xslt-playground-backend
|
||||
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
|
||||
uses: docker/build-push-action@v5
|
||||
@@ -53,5 +53,5 @@ jobs:
|
||||
OWNER: ${{ github.repository_owner }}
|
||||
PACKAGE: xslt-playground-frontend
|
||||
run: |
|
||||
gh api -X PATCH /user/packages/container/$PACKAGE --field visibility=public
|
||||
gh api -X PATCH /users/alexandrev/packages/container/$PACKAGE --field visibility=public
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ FRONTEND_DIR=frontend
|
||||
BACKEND_IMAGE=xslt-playground-backend
|
||||
FRONTEND_IMAGE=xslt-playground-frontend
|
||||
|
||||
|
||||
.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
|
||||
@@ -14,10 +15,12 @@ frontend-build:
|
||||
cd $(FRONTEND_DIR) && npm install && npm run build
|
||||
|
||||
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:
|
||||
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:
|
||||
docker compose -f docker-compose.local.yml up
|
||||
|
||||
Reference in New Issue
Block a user