Compare commits
55 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b218abf27e | |||
| ea043ac1e0 | |||
| efce97a22d | |||
| 38eb380797 | |||
| af3db9f79a | |||
| 03a06bcea1 | |||
| 2becbd0064 | |||
| e712421200 | |||
| 7b196d93b1 | |||
| e32e0f52f6 | |||
| 3febc960bb | |||
| f4f1ad05bf | |||
| 021dfaf045 | |||
| 302cc8d7d6 | |||
| d84614ab26 | |||
| b50c72fb21 | |||
| d6d1450a46 | |||
| c224ca1730 | |||
| 46c99c799e | |||
| c80d3470c5 | |||
| b75c3328e1 | |||
| 70b398704c | |||
| bda03fa66c | |||
| e474f11b44 | |||
| e7a20f2ca7 | |||
| 3bae954473 | |||
| 09a9fe43eb | |||
| 9be3f42633 | |||
| c4f828d76e | |||
| 0abe2badf1 | |||
| b1bc7dd2b6 | |||
| 29f906c94e | |||
| 3e16b9e480 | |||
| ba26e32d7a | |||
| af7c252c4e | |||
| 9b3731cffe | |||
| 72ca7a1923 | |||
| c9401aeaa8 | |||
| 1f3f00674c | |||
| 339f8bd45c | |||
| abdf945c8d | |||
| 4a0d499f2a | |||
| 186739b902 | |||
| cc01b02365 | |||
| a576040e0c | |||
| 66bcaf9491 | |||
| ab33f676a7 | |||
| ded958c900 | |||
| daf8e2ecf6 | |||
| f30ecfd24b | |||
| 6cbe50e44b | |||
| 0836314c51 | |||
| ee8c65fedd | |||
| a2296c3408 | |||
| 6377234bcf |
2
.github/workflows/image_creation.yaml
vendored
2
.github/workflows/image_creation.yaml
vendored
@ -1,4 +1,4 @@
|
||||
name: Build Push Prod
|
||||
name: Build Push
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
|
||||
47
.github/workflows/test_workflow.yml
vendored
47
.github/workflows/test_workflow.yml
vendored
@ -1,47 +0,0 @@
|
||||
name: dev workflow
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- dev
|
||||
- 'feature/**'
|
||||
paths:
|
||||
- '**.go'
|
||||
- '**.yml'
|
||||
- '**.yaml'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
USERNAME: ${{ vars.USERNAME }}
|
||||
TAG_VERSION: ${{ github.ref_name }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
|
||||
- name: test with go
|
||||
run: go test -v ./...
|
||||
|
||||
vulnCheck:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
USERNAME: ${{ vars.USERNAME }}
|
||||
TAG_VERSION: ${{ github.ref_name }}
|
||||
|
||||
steps:
|
||||
- name: checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: go vuln check
|
||||
uses: golang/govulncheck-action@v1
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
go-package: ./...
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
/.env
|
||||
bin/*
|
||||
/.env2
|
||||
|
||||
@ -13,5 +13,4 @@ RUN go build -o bin/ddns \
|
||||
|
||||
FROM alpine AS runner
|
||||
COPY --from=builder /app/bin/ddns /usr/bin/
|
||||
|
||||
ENTRYPOINT /usr/bin/ddns
|
||||
|
||||
@ -227,11 +227,6 @@ 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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user