generated from neotheprogramist/webapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a15fab
commit 4b300d4
Showing
45 changed files
with
1,944 additions
and
1,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
plugins: ['prettier-plugin-tailwindcss'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
podman build -t webapp . && \ | ||
podman push --tls-verify=false webapp:latest localhost:30500/webapp:latest && \ | ||
podman build -t treasure-hunt . && \ | ||
podman push --tls-verify=false treasure-hunt:latest localhost:30500/treasure-hunt:latest && \ | ||
kubectl config use-context kind-kind && \ | ||
kubectl apply -k k8s/patches/dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Load environment variables | ||
source .env && \ | ||
source .env.local && \ | ||
|
||
# Create namespace | ||
kubectl create namespace treasure-hunt-production --dry-run=client -o yaml | kubectl apply -f - && \ | ||
|
||
# Delete old deployment | ||
kubectl delete -k k8s/patches/production && \ | ||
|
||
# Build the Docker image | ||
podman build -t treasure-hunt:latest . && \ | ||
|
||
# Push the Docker image | ||
podman push --creds $REGISTRY_USER:$REGISTRY_PASS treasure-hunt:latest registry.visoft.dev/treasure-hunt:latest && \ | ||
|
||
# Create or update the Docker registry secret | ||
kubectl -n treasure-hunt-production create secret docker-registry regcred \ | ||
--docker-server=$REGISTRY_URL \ | ||
--docker-username=$REGISTRY_USER \ | ||
--docker-password=$REGISTRY_PASS \ | ||
--dry-run=client -o yaml | kubectl apply -f - && \ | ||
|
||
# Apply Kubernetes manifests | ||
kubectl apply -k k8s/patches/production |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
k8s/patches/dev/routes.yaml → k8s/patches/production/routes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: webapp-template | ||
name: treasure-hunt | ||
spec: | ||
parentRefs: | ||
- kind: Gateway | ||
name: nginx-gateway | ||
namespace: nginx-gateway | ||
name: nginx-production-gateway | ||
namespace: nginx-production-gateway | ||
hostnames: | ||
- localhost | ||
- hunters.visoft.dev | ||
rules: | ||
- matches: | ||
backendRefs: | ||
- name: webapp-template | ||
- name: treasure-hunt | ||
port: 80 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
Oops, something went wrong.