-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc40c52
commit 22469ac
Showing
15 changed files
with
86 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,5 @@ go.work.sum | |
.idea/ | ||
|
||
# env file | ||
src/cmd/pecker.conf | ||
cmd/woodpecker/pecker.conf | ||
deployments/docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM golang:1.23.0 AS builder | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
RUN go build -o woodpecker ./cmd/woodpecker | ||
|
||
FROM alpine:latest | ||
|
||
RUN apk add --no-cache libc6-compat | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /app/woodpecker . | ||
|
||
CMD ["./woodpecker"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
services: | ||
woodpecker: | ||
build: | ||
context: .. | ||
dockerfile: deployments/Dockerfile | ||
environment: | ||
# IP config | ||
IP_SERVICE: https://api.ipify.org # https://ifconfig.me || https://ipinfo.io/ip | ||
CHECK_INTERVAL: 1 # interval in minutes to check IP address | ||
|
||
# PorkBun config (optional) | ||
PORKBUN_API_EDIT_URL: https://api.porkbun.com/api/json/v3/dns/editByNameType/ | ||
PORKBUN_API_RETRIEVE_URL: https://api.porkbun.com/api/json/v3/dns/retrieveByNameType/ | ||
PORKBUN_API_KEY: porkbun-api-key | ||
PORKBUN_SECRET_KEY: porkbun-secret-key | ||
PORKBUN_DOMAIN: example.com | ||
PORKBUN_SUBDOMAIN: www # leave blank for root | ||
|
||
# Namecheap config (optional) | ||
NAMECHEAP_EDIT_URL: https://dynamicdns.park-your-domain.com/update | ||
NAMECHEAP_PASSWORD: namecheap-password | ||
NAMECHEAP_DOMAIN: example.com | ||
NAMECHEAP_SUBDOMAIN: www # leave blank for root | ||
volumes: | ||
- ip-data:/app/ip-data | ||
|
||
volumes: | ||
ip-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= | ||
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= | ||
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= | ||
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package constants | ||
|
||
const ConfigFilename = "docker-compose.yml" | ||
const CurrentIpFilename = "current_ip.conf" | ||
const CurrentIPFilenameDir = "/app/ip-data" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.