Compare commits

..

4 Commits
dev ... master

Author SHA1 Message Date
952c7b8660 tza not needed 2024-12-10 18:48:09 -04:00
9ba30d10b7 ADD tz data to alpine now comes without it
All checks were successful
Generic Build / build (push) Successful in 8s
Build Push Prod / build (push) Successful in 2m27s
2024-12-10 18:40:43 -04:00
94b1681a38 delete master check
All checks were successful
dev workflow / test (push) Successful in 16s
dev workflow / vulnCheck (push) Successful in 26s
Generic Build / build (push) Successful in 7s
Build Push Prod / build (push) Successful in 2m31s
2024-12-10 12:49:07 -04:00
574467e307 FIX create unknow name
Some checks failed
dev workflow / test (push) Successful in 17s
dev workflow / vulnCheck (push) Successful in 26s
Build Push Prod / build (push) Failing after 5s
Generic Build / build (push) Successful in 24s
2024-12-10 12:46:18 -04:00
4 changed files with 9 additions and 6 deletions

View File

@ -13,11 +13,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Exit if not on master
if: endsWith(github.ref, master) == false
run: exit 1
- name: Setup Quemu
uses: docker/setup-qemu-action@v3

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
/.env
bin/*
bin/*
/.env2

View File

@ -13,4 +13,5 @@ RUN go build -o bin/ddns \
FROM alpine AS runner
COPY --from=builder /app/bin/ddns /usr/bin/
ENTRYPOINT /usr/bin/ddns

View File

@ -227,6 +227,11 @@ func (app *Application) Operation(op string, name, tipo, ipSTR,rID, comment stri
if name == "" {
panic("name cant be empty for op create")
}
if dn == "" {
app.log.Debug("domains available", "domains", app.zoneRecords)
dn = name
}
fmt.Printf("domain name: %s", dn)
rBody = app.GenerateReqBody(dn, tipo, app.publicIP.String(),comment, proxied)
app.Create(*rBody)