Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 952c7b8660 | |||
| 9ba30d10b7 | |||
| 94b1681a38 | |||
| 574467e307 |
4
.github/workflows/image_creation.yaml
vendored
4
.github/workflows/image_creation.yaml
vendored
@ -14,10 +14,6 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Exit if not on master
|
|
||||||
if: endsWith(github.ref, master) == false
|
|
||||||
run: exit 1
|
|
||||||
|
|
||||||
- name: Setup Quemu
|
- name: Setup Quemu
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/.env
|
/.env
|
||||||
bin/*
|
bin/*
|
||||||
|
/.env2
|
||||||
|
|||||||
@ -13,4 +13,5 @@ RUN go build -o bin/ddns \
|
|||||||
|
|
||||||
FROM alpine AS runner
|
FROM alpine AS runner
|
||||||
COPY --from=builder /app/bin/ddns /usr/bin/
|
COPY --from=builder /app/bin/ddns /usr/bin/
|
||||||
|
|
||||||
ENTRYPOINT /usr/bin/ddns
|
ENTRYPOINT /usr/bin/ddns
|
||||||
|
|||||||
@ -227,6 +227,11 @@ func (app *Application) Operation(op string, name, tipo, ipSTR,rID, comment stri
|
|||||||
if name == "" {
|
if name == "" {
|
||||||
panic("name cant be empty for op create")
|
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)
|
fmt.Printf("domain name: %s", dn)
|
||||||
rBody = app.GenerateReqBody(dn, tipo, app.publicIP.String(),comment, proxied)
|
rBody = app.GenerateReqBody(dn, tipo, app.publicIP.String(),comment, proxied)
|
||||||
app.Create(*rBody)
|
app.Create(*rBody)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user