Skip to content

Commit

Permalink
Merge pull request #7 from BlazeIsClone/develop
Browse files Browse the repository at this point in the history
Deployment Updates
  • Loading branch information
BlazeIsClone authored Sep 17, 2024
2 parents 816390c + 791bd37 commit 334c08f
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:

jobs:
test:
name: "Run Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ WORKDIR /app

ADD . .

ENV PORT=3000

ENV BASE_PATH="/api/v1"

RUN make build

EXPOSE 3000
Expand Down
15 changes: 1 addition & 14 deletions deploy/local/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: go-app
image: blazeclone/spaceops-mission-ctrl:latest
image: ghcr.io/blazeisclone/spaceops-mission-ctrl:v0.0.1
ports:
- containerPort: 3000
resources:
Expand All @@ -26,16 +26,3 @@ spec:
limits:
memory: "128Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: go-app-service
spec:
selector:
app: go-app
ports:
- protocol: TCP
port: 80
targetPort: 3000
type: LoadBalancer
12 changes: 12 additions & 0 deletions deploy/local/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: go-app-service
spec:
selector:
app: go-app
ports:
- protocol: TCP
port: 80
targetPort: 3000
type: LoadBalancer
4 changes: 2 additions & 2 deletions deploy/prod/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ spec:
spec:
containers:
- name: hello-app
image: us-docker.pkg.dev/google-samples/containers/gke/hello-app:1.0
image: ghcr.io/blazeisclone/spaceops-mission-ctrl:v0.0.1
ports:
- containerPort: 8080
- containerPort: 3000
resources:
requests:
cpu: 200m
2 changes: 1 addition & 1 deletion deploy/prod/ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ spec:
service:
name: helloweb-backend
port:
number: 8080
number: 3000
4 changes: 2 additions & 2 deletions deploy/prod/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ spec:
app: hello
tier: web
ports:
- port: 8080
targetPort: 8080
- port: 3000
targetPort: 3000

0 comments on commit 334c08f

Please sign in to comment.