Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujstor committed Jun 21, 2024
1 parent 8f24b89 commit c92b75d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Docker image
on:
push:
branches:
- refactor
- master
jobs:
docker:
Expand Down
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,30 @@

This static website is built with Go and Templ.

Complete website in singe binary.

## Docker image Workflow
Variables are defined in config.yml and can be updated upon commit for new image tag:

```bash
docker:
DOCKER_HUB_USERNAME: ujstor
DOCKER_REPO_NAME: portfolio-web-go
VERSION_PART: Patch # Patch, Minor, major
PUSH_TO_DOCKER: true
```
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.

Workflow also requires DockerHub login credentials, username and password configuration in the Action secret:

```bash
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
```

## Deployment
Deployment can be achieved through self-hosting service provided by [Collify](https://coolify.io/docs/installation).

<br>
<br>

![](https://i.imgur.com/pi1WaHy.png)

## MakeFile
Expand Down
2 changes: 0 additions & 2 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
web:
image: ujstor/portfolio-web-go:1.2.1
Expand Down

0 comments on commit c92b75d

Please sign in to comment.