tangled
alpha
login
or
join now
kacaii.dev
/
blog
0
fork
atom
💻 My personal website
blog.kacaii.dev/
blog
gleam
lustre
0
fork
atom
overview
issues
pulls
pipelines
:truck: output tailwind css to correct location
kacaii.dev
1 month ago
7a12c6a4
7d992ef2
+2
-30
4 changed files
expand all
collapse all
unified
split
.justfiles
docker.just
tailwind.just
.tangled
workflows
deploy.yml
justfile
-27
.justfiles/docker.just
···
1
1
-
username := "kacaii"
2
2
-
image_name := "blog"
3
3
-
tag_name := "latest"
4
4
-
full_image_name := username / image_name + ":" + tag_name
5
5
-
port := "8000"
6
6
-
7
7
-
# Run the container
8
8
-
run:
9
9
-
docker run -p {{ port }}:{{ port }} {{ image_name }}:{{ tag_name }}
10
10
-
11
11
-
# Build, Tag and Push your app
12
12
-
shipment: build-image tag-image push-image
13
13
-
14
14
-
# Build Docker image
15
15
-
[no-cd]
16
16
-
build-image:
17
17
-
docker-buildx build --file dockerfile --tag {{ image_name }} .
18
18
-
19
19
-
# Tag container image
20
20
-
[private]
21
21
-
tag-image:
22
22
-
docker tag {{ image_name }}:{{ tag_name }} {{ full_image_name }}
23
23
-
24
24
-
# Push to container registry
25
25
-
[private]
26
26
-
push-image:
27
27
-
docker push {{ full_image_name }}
+1
-1
.justfiles/tailwind.just
···
1
1
set quiet := true
2
2
3
3
input_css := "input.css"
4
4
-
output_css := "priv" / "static" / "style" / "output.css"
4
4
+
output_css := "priv" / "dist" / "style" / "output.css"
5
5
6
6
# Start Tailwind file watching
7
7
[no-cd]
+1
-1
.tangled/workflows/deploy.yml
···
22
22
steps:
23
23
- name: tailwind
24
24
command: |
25
25
-
tailwindcss -i input.css -o "$SITE_PATH"/output.css
25
25
+
tailwindcss -i input.css -o "$SITE_PATH"/style/output.css
26
26
27
27
- name: build
28
28
command: |
-1
justfile
···
1
1
mod gleam ".justfiles/gleam.just"
2
2
mod tailwind ".justfiles/tailwind.just"
3
3
-
mod docker ".justfiles/docker.just"
4
3
5
4
@_default:
6
5
just --list