Skip to content

Commit c92b75d

Browse files
committed
update
1 parent 8f24b89 commit c92b75d

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

.github/workflows/docker-image.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Docker image
33
on:
44
push:
55
branches:
6-
- refactor
76
- master
87
jobs:
98
docker:

README.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,30 @@
22

33
This static website is built with Go and Templ.
44

5+
Complete website in singe binary.
6+
7+
## Docker image Workflow
8+
Variables are defined in config.yml and can be updated upon commit for new image tag:
9+
10+
```bash
11+
docker:
12+
DOCKER_HUB_USERNAME: ujstor
13+
DOCKER_REPO_NAME: portfolio-web-go
14+
VERSION_PART: Patch # Patch, Minor, major
15+
PUSH_TO_DOCKER: true
16+
```
17+
If the image does not exist, the default image tag is 0.0.1 for Patch, 0.1.0 for Minor, 1.0.0 for Major. Semantic versioning is employed upon commit, automatically incrementing the version.
18+
19+
Workflow also requires DockerHub login credentials, username and password configuration in the Action secret:
20+
21+
```bash
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
```
25+
526
## Deployment
627
Deployment can be achieved through self-hosting service provided by [Collify](https://coolify.io/docs/installation).
728

8-
<br>
9-
<br>
10-
1129
![](https://i.imgur.com/pi1WaHy.png)
1230

1331
## MakeFile

docker-compose-prod.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
web:
53
image: ujstor/portfolio-web-go:1.2.1

0 commit comments

Comments
 (0)