Skip to content

Commit

Permalink
test: k3s deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Aug 27, 2024
1 parent 52ca207 commit 3e5015a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/k3s-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ jobs:
run: |
for MODULE in $(echo $CHANGED_MODULES | tr "," "\n"); do
cat <<EOF > deployment-$MODULE.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
apiVersion: apps/v1
kind: Deployment
metadata:
name: $MODULE-production
namespace: default
labels:
app: $MODULE-production
spec:
spec:
replicas: 1
selector:
matchLabels:
Expand All @@ -187,9 +187,9 @@ jobs:
spec:
containers:
- name: $MODULE-production
image: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}/$MODULE:latest
image: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}/$MODULE:${{ env.SHA_SHORT }}
ports:
- containerPort: $PORT
- containerPort: 8080
env:
- name: TZ
value: "Asia/Seoul"
Expand All @@ -213,22 +213,22 @@ jobs:
type: DirectoryOrCreate
- name: tokens-volume
emptyDir: { }
---
apiVersion: v1
kind: Service
metadata:
---
apiVersion: v1
kind: Service
metadata:
name: $MODULE-service-production
namespace: default
labels:
app: $MODULE-production
spec:
spec:
selector:
app: $MODULE-production
ports:
- protocol: TCP
port: 80
targetPort: $PORT
EOF
targetPort: 8080
EOF
done
Expand Down

0 comments on commit 3e5015a

Please sign in to comment.