File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 23
23
- run : docker push ghcr.io/${{ github.repository }}/coilysiren-backend:${{ github.sha }}
24
24
deploy :
25
25
runs-on : ubuntu-latest
26
+ needs : build-publish
26
27
steps :
27
28
- uses : actions/checkout@v4
28
29
- uses : tailscale/github-action@v3
59
60
client-certificate-data: ${{ secrets.K8S_CLIENT_CERT_DATA }}
60
61
client-key-data: ${{ secrets.K8S_CLIENT_KEY_DATA }}
61
62
EOF
62
- - run : kubectl get pods --all-namespaces
63
+ - run : make .deploy
Original file line number Diff line number Diff line change @@ -7,11 +7,14 @@ DEFAULT_GOAL := help
7
7
# So only put fast commands up here.
8
8
9
9
dns-name ?= $(shell cat config.yml | yq e '.dns-name')
10
- dns-dashed ?= $(subst .,-,$(dns-name ) )
11
10
email ?= $(shell cat config.yml | yq e '.email')
12
11
name ?= $(shell cat config.yml | yq e '.name')
13
12
name-dashed ?= $(subst /,-,$(name ) )
14
- hash ?= $(shell git rev-parse HEAD)
13
+ git-hash ?= $(shell git rev-parse HEAD)
14
+ image-url ?= ghcr.io/$(name ) /$(name-dashed ) :$(git-hash )
15
+
16
+ echo :
17
+ echo $(image-url )
15
18
16
19
help :
17
20
@awk ' /^## / \
@@ -80,8 +83,7 @@ deploy-secrets-cert:
80
83
env \
81
84
NAME=$(name-dashed ) \
82
85
DNS_NAME=$(dns-name ) \
83
- DNS_DASHED=$(dns-dashed ) \
84
- EMAIL=$(email ) \
86
+ IMAGE=$(image-url ) \
85
87
envsubst < deploy/main.yml | kubectl apply -f -
86
88
87
89
# # deploy the application to the cluster
Original file line number Diff line number Diff line change @@ -16,10 +16,14 @@ spec:
16
16
spec :
17
17
containers :
18
18
- name : ${NAME}
19
- image : nginx # temporary
19
+ image : ${IMAGE}
20
+ resources :
21
+ limits :
22
+ cpu : 1000m
23
+ memory : 256Mi
20
24
env :
21
- # - name: PORT
22
- # value: "80"
25
+ - name : PORT
26
+ value : " 80"
23
27
# - name: BSKY_USERNAME
24
28
# valueFrom:
25
29
# secretKeyRef:
You can’t perform that action at this time.
0 commit comments