Skip to content

Commit

Permalink
Merge pull request #8609 from infor-design/fix/node-sass
Browse files Browse the repository at this point in the history
fixes to the enterprise release pipeline
  • Loading branch information
tmcconechy committed Apr 9, 2024
2 parents 7fc3fee + 8565982 commit 4edb569
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 18 deletions.
2 changes: 1 addition & 1 deletion scripts/publish-docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CURRENT_DIR=$(shell pwd)
ORGANIZATION = hookandloop
IMAGE = enterprise-publish-docs
IMAGE_TAG = 0.0.2
IMAGE_TAG = 1.0.0


ifneq (,$(wildcard ./.env))
Expand Down
4 changes: 2 additions & 2 deletions scripts/publish-docs/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ spec:
name: docs-api-key
key: token
- name: DOCS_API_URL
value: "https://old.design.infor.com"
value: "https://legacy.design.infor.com"
- name: SITE
value: "prod"
- name: BUILD_FROM
value: "4.91.0"
value: "4.93.0"
- name: APP_REPO
value: "infor-design/enterprise"
command: ["/bin/bash"]
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-buster
FROM node:18

WORKDIR /usr/src

Expand Down
45 changes: 32 additions & 13 deletions scripts/release/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
CURRENT_DIR=$(shell pwd)

ORGANIZATION = hookandloop
WORKER_CONTAINER_NAME = enterprise-release
WORKER_CONTAINER_VERSION = 1.0.0
IMAGE = enterprise-release
IMAGE_TAG = 1.0.1


ifneq (,$(wildcard ./.env))
include .env
export
endif

.PHONY: build-worker-image
build-worker-image :
docker build -t $(ORGANIZATION)/$(WORKER_CONTAINER_NAME):$(WORKER_CONTAINER_VERSION) .

.PHONY: run-worker
run-worker :
docker run --rm --name $(WORKER_CONTAINER_NAME) \
.PHONY: all
all: build tag push

.PHONY: build
build:
DOCKER_BUILDKIT=1 docker build \
--platform=linux/amd64 \
-t $(IMAGE):$(IMAGE_TAG) \
-f $(CURRENT_DIR)/Dockerfile .

.PHONY: tag
tag:
docker tag $(IMAGE):$(IMAGE_TAG) $(ORGANIZATION)/$(IMAGE):$(IMAGE_TAG)

.PHONY: push
push:
docker push $(ORGANIZATION)/$(IMAGE):$(IMAGE_TAG)

.PHONY: run
run :
docker run --rm --name $(IMAGE) \
--env GITHUB_ACCESS_TOKEN=${GITHUB_ACCESS_TOKEN} \
--env DOCS_API_KEY=${DOCS_API_KEY} \
--env DOCS_API_URL=${DOCS_API_URL} \
Expand All @@ -27,11 +45,12 @@ run-worker :
-v ${PWD}/build:/root/enterprise \
-v ${PWD}/.gitconfig:/root/.gitconfig \
-v ${PWD}/run.sh:/usr/src/run.sh \
$(ORGANIZATION)/$(WORKER_CONTAINER_NAME):$(WORKER_CONTAINER_VERSION)
$(ORGANIZATION)/$(IMAGE):$(IMAGE_TAG)

.PHONY: shell-worker
shell-worker :
docker run -it --rm --name $(WORKER_CONTAINER_NAME) \
.PHONY: shell
shell :
docker run -it --rm --name $(IMAGE) \
--platform=linux/amd64 \
--entrypoint /bin/bash \
--env GITHUB_ACCESS_TOKEN=${GITHUB_ACCESS_TOKEN} \
--env DOCS_API_KEY=${DOCS_API_KEY} \
Expand All @@ -46,4 +65,4 @@ shell-worker :
-v ${PWD}/build:/root/enterprise \
-v ${PWD}/.gitconfig:/root/.gitconfig \
-v ${PWD}/run.sh:/usr/src/run.sh \
$(ORGANIZATION)/$(WORKER_CONTAINER_NAME):$(WORKER_CONTAINER_VERSION)
$(ORGANIZATION)/$(IMAGE):$(IMAGE_TAG)
2 changes: 1 addition & 1 deletion scripts/release/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
name: docs-api-key
key: token
- name: DOCS_API_URL
value: "https://old.design.infor.com"
value: "https://legacy.design.infor.com"
- name: NPM_TOKEN
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 4edb569

Please sign in to comment.