From 4629c9faed5ff3c7e26eec739427862a36d86aa6 Mon Sep 17 00:00:00 2001 From: Ivan Panayotov Date: Mon, 5 Jan 2026 19:35:54 +0200 Subject: [PATCH 1/2] Update CD Configuration (#2) --- k8s/deployment.yml | 17 +---------------- k8s/namespace.yml | 4 ++++ k8s/service.yml | 14 ++++++-------- 3 files changed, 11 insertions(+), 24 deletions(-) create mode 100644 k8s/namespace.yml diff --git a/k8s/deployment.yml b/k8s/deployment.yml index 4abe24f..d710a28 100644 --- a/k8s/deployment.yml +++ b/k8s/deployment.yml @@ -19,7 +19,7 @@ spec: spec: containers: - name: spotify-remastered - image: ${{ secrets.DOCKER_USERNAME }}/spotifyremastered:latest + image: imrshadow/spotifyremastered:latest imagePullPolicy: Always ports: - containerPort: 1337 @@ -28,18 +28,3 @@ spec: value: "0.0.0.0" - name: SERVER_PORT value: "1337" ---- -apiVersion: v1 -kind: Service -metadata: - name: spotify-remastered - namespace: spotify-app -spec: - type: NodePort - selector: - app: spotify-remastered - ports: - - protocol: TCP - port: 80 - targetPort: 1337 - nodePort: 30007 \ No newline at end of file diff --git a/k8s/namespace.yml b/k8s/namespace.yml new file mode 100644 index 0000000..65a32da --- /dev/null +++ b/k8s/namespace.yml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: spotify-app diff --git a/k8s/service.yml b/k8s/service.yml index 4cdb085..77a592a 100644 --- a/k8s/service.yml +++ b/k8s/service.yml @@ -1,17 +1,15 @@ apiVersion: v1 kind: Service metadata: - name: spotify-service + name: spotify-remastered namespace: spotify-app - labels: - app: spotify spec: + type: NodePort selector: - app: spotify + app: spotify-remastered ports: - - port: 1337 + - protocol: TCP + port: 1337 targetPort: 1337 - name: socket - protocol: TCP + nodePort: 30007 - type: NodePort \ No newline at end of file From f6b0e9aceb7125bf20af320c5a7b62989118671c Mon Sep 17 00:00:00 2001 From: Ivan Panayotov Date: Tue, 6 Jan 2026 11:48:02 +0200 Subject: [PATCH 2/2] Add workflow_dispatch and paths-ignore to CI/CD --- .github/workflows/cd.yml | 2 ++ .github/workflows/ci.yml | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9fbcd5c..cc8762f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -6,6 +6,8 @@ on: - completed branches: - dev + + workflow_dispatch: jobs: build-and-push: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e999dd..2b0e2a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,9 +3,17 @@ name: CI Pipeline on: push: branches: [ "main", "dev" ] + paths-ignore: + - '**/*.md' + - '.gitignore' + - '**/.gitignore' pull_request: branches: [ "main", "dev" ] - + paths-ignore: + - '**/*.md' + - '.gitignore' + - '**/.gitignore' + workflow_dispatch: jobs: build: name: Build and Test