Skip to content

Commit

Permalink
code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopiovanello committed Jan 15, 2024
1 parent 2a57e00 commit 19c1a8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ jobs:
# 2.10.0
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55

- name: Login to Docker Hub
# 2.2.0
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Login to GHCR
# 2.2.0
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
Expand Down Expand Up @@ -77,4 +71,3 @@ jobs:
# against the sigstore community Fulcio instance.
run: |
cosign sign ghcr.io/${{ github.repository }}@${{ steps.build-and-push.outputs.digest }}
cosign sign docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/rei@${{ steps.build-and-push.outputs.digest }}
2 changes: 1 addition & 1 deletion internal/config/safe_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (c *SafeConfig) Save(value Config) {
func (c *SafeConfig) Load(configPath string) {
dat, err := os.ReadFile(configPath)
if err != nil {
dat, err = os.ReadFile("/etc/valeera/Valeerafile")
dat, err = os.ReadFile("/etc/rei/config.yml")
if err != nil {
log.Fatalln(err)
}
Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ var (
//go:embed static
static embed.FS

configPath string
configPath string
wallpaperPath string
)

func init() {
flag.StringVar(&configPath, "c", "./config.yml", "path of configuration file")
flag.StringVar(&configPath, "bg", "./static/wallpaper.avif", "path of background image")
flag.StringVar(&wallpaperPath, "bg", "./static/wallpaper.avif", "path of background image")
flag.Parse()
}

Expand Down

0 comments on commit 19c1a8a

Please sign in to comment.