* 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:
Vidar Normann 2024-02-29 22:56:49 +01:00 committed by GitHub
parent 0d6fa2de30
commit 790d9bffab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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
View file

@ -1,3 +1,4 @@
module github.com/vidarno/external-dns-domeneshop-webhook
go 1.21

View file

@ -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"
)

View file

@ -7,6 +7,7 @@ import (
"os"
"github.com/vidarno/external-dns-domeneshop-webhook/pkg/webhook"
)
func main() {

View file

@ -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 (