Develop (#4)
* Feature/internal develop (#1) * Initial commit * Initial Dockerfile * Fix errors in Dockerfile * Update documentation * First edition of values-file with dummy image * update .gitignore * Create image-publish.yml (#2) First CICD-attempt * Add LABEL to Dockerfile
This commit is contained in:
parent
0d6fa2de30
commit
790d9bffab
6 changed files with 7 additions and 3 deletions
2
.github/workflows/image-publish.yml
vendored
2
.github/workflows/image-publish.yml
vendored
|
@ -27,4 +27,4 @@ jobs:
|
|||
- name: 'Build Inventory Image'
|
||||
run: |
|
||||
docker build . --tag ghcr.io/${{ github.actor }}/external-dns-domeneshop-webhook:latest
|
||||
docker push ghcr.io/${{ github.actor }}/external-dns-domeneshop-webhook:latest
|
||||
docker push ghcr.io/${{ github.actor }}/external-dns-domeneshop-webhook:latest
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
# Stage 1 (to create a "build" image, ~850MB)
|
||||
FROM golang:1.22.0 AS builder
|
||||
LABEL org.opencontainers.image.source="https://github.com/vidarno/external-dns-domeneshop-webhook>"
|
||||
LABEL org.opencontainers.image.source="https://github.com/vidarno/external-dns-domeneshop-webhook"
|
||||
|
||||
WORKDIR /src/
|
||||
COPY go.mod go.sum ./
|
||||
|
|
1
go.mod
1
go.mod
|
@ -1,3 +1,4 @@
|
|||
|
||||
module github.com/vidarno/external-dns-domeneshop-webhook
|
||||
|
||||
go 1.21
|
||||
|
|
|
@ -9,6 +9,7 @@ import (
|
|||
"strings"
|
||||
|
||||
domeneshop "github.com/vidarno/external-dns-domeneshop-webhook/internal/client"
|
||||
|
||||
"sigs.k8s.io/external-dns/endpoint"
|
||||
"sigs.k8s.io/external-dns/plan"
|
||||
)
|
||||
|
|
1
main.go
1
main.go
|
@ -7,6 +7,7 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/vidarno/external-dns-domeneshop-webhook/pkg/webhook"
|
||||
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package webhook
|
||||
|
||||
/*
|
||||
This package handles alle the routes and helper-functions used by them
|
||||
This package handles all the routes and helper-functions used by them
|
||||
*/
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -11,6 +11,7 @@ import (
|
|||
"sort"
|
||||
|
||||
domeneshopProvider "github.com/vidarno/external-dns-domeneshop-webhook/internal/provider"
|
||||
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
Loading…
Add table
Reference in a new issue