diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 33aa70364..e7859a569 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: - - master + - main jobs: build: diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml new file mode 100644 index 000000000..674ee6039 --- /dev/null +++ b/manifests/deployment.yaml @@ -0,0 +1,40 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: spaceify-frontend + namespace: spaceify +spec: + replicas: 1 + selector: + matchLabels: + app: spaceify-frontend + template: + metadata: + labels: + app: spaceify-frontend + spec: + containers: + - name: spaceify-frontend + image: jpyles0524/spaceify-frontend:latest + ports: + - containerPort: 3000 + resources: + limits: + memory: "512Mi" + cpu: "500m" + +--- +apiVersion: v1 +kind: Service +metadata: + name: spaceify-frontend + namespace: spaceify +spec: + selector: + app: spaceify-frontend + ports: + - protocol: TCP + port: 3000 + targetPort: 3000 + nodePort: 30124 + type: NodePort \ No newline at end of file diff --git a/src/App.js b/src/App.js index 4860e6326..cf0fd6504 100644 --- a/src/App.js +++ b/src/App.js @@ -101,7 +101,7 @@ export default function App() { }; const res = await fetch( - "http://space.spaceify.co/api/spotify/playlist", + "/api/spotify/playlist", options, );