Commit e2204d24 authored by Jordi Masip's avatar Jordi Masip
Browse files

Improving README, gitlab-ci and some typos

parent 2823e458
Pipeline #1777 passed with stages
in 3 minutes and 6 seconds
# This file is a template, and might need editing before it works on your project.
image: golang:latest
image: golang:1.15.6
cache:
paths:
......@@ -40,3 +40,12 @@ compile:
artifacts:
paths:
- migrator
code_navigation:
image: sourcegraph/lsif-go:v1
allow_failure: true # recommended
script:
- lsif-go
artifacts:
reports:
lsif: dump.lsif
# Caddy Storage Migrator
[![Pipeline](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/badges/master/pipeline.svg)](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/-/commits/master) [![Coverage](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/badges/master/coverage.svg)](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/-/commits/master)
# Caddy Storage Migrator [![Pipeline](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/badges/master/pipeline.svg)](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/-/commits/master) [![Go Report Card](https://goreportcard.com/badge/gitlab.masip.cat/masipcat/caddy-storage-migrator)](https://goreportcard.com/report/gitlab.masip.cat/masipcat/caddy-storage-migrator) [![Coverage](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/badges/master/coverage.svg)](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/-/commits/master)
This is a simple command line application to import/export storage data from Caddy v2 (or Certmagic).
......
......@@ -74,7 +74,7 @@ func ImportFiles(storage certmagic.Storage, caddyFolder string) error {
paths := make([]string, 0)
err = filepath.Walk(caddyFolder, func(fullpath string, f os.FileInfo, err error) error {
if err != nil {
log.Printf("Error ocurred in %s: %v", fullpath, err)
log.Printf("Error occurred in %s: %v", fullpath, err)
}
if !f.IsDir() {
paths = append(paths, fullpath)
......
......@@ -190,7 +190,7 @@ func TestExport(t *testing.T) {
return
}
data, err := ioutil.ReadFile(filepath.Join(dest, "cert1"))
data, _ := ioutil.ReadFile(filepath.Join(dest, "cert1"))
if !bytes.Equal(data, fileContent) {
t.Errorf("File content mismatch")
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment