working-deployment-on-kind-cluster (#1)
All checks were successful
ci / build (push) Successful in 2m32s
All checks were successful
ci / build (push) Successful in 2m32s
Reviewed-on: #1 Co-authored-by: franz.germann <franz.germann@telekom.de> Co-committed-by: franz.germann <franz.germann@telekom.de>
This commit is contained in:
parent
2f6691fab5
commit
5d64594755
3 changed files with 17 additions and 18 deletions
23
.github/workflows/.github-ci.yml
vendored
23
.github/workflows/.github-ci.yml
vendored
|
@ -7,8 +7,7 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
-
|
||||
name: Repository meta
|
||||
- name: Repository meta
|
||||
id: repository
|
||||
run: |
|
||||
registry=${{ github.server_url }}
|
||||
|
@ -18,30 +17,30 @@ jobs:
|
|||
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
||||
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
|
||||
echo "repository=${repository}"
|
||||
-
|
||||
name: Docker meta
|
||||
|
||||
- name: Docker meta
|
||||
uses: docker/metadata-action@v5
|
||||
id: docker
|
||||
with:
|
||||
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
||||
-
|
||||
name: Login to registry
|
||||
|
||||
- name: Login to registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ steps.repository.outputs.registry }}
|
||||
username: ${{ secrets.PACKAGES_USER }}
|
||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||
-
|
||||
name: Set up QEMU
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
buildkitd-flags: '--allow-insecure-entitlement network.host'
|
||||
driver-opts: network=host
|
||||
-
|
||||
name: Build and push
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
|
|
|
@ -13,7 +13,7 @@ spec:
|
|||
app: ascii-live
|
||||
spec:
|
||||
containers:
|
||||
- image: hugomd/ascii-live:407342dc
|
||||
- image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/franz.germann/ascii-live:development
|
||||
name: ascii-live
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
@ -44,10 +44,10 @@ metadata:
|
|||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
spec:
|
||||
rules:
|
||||
- host: ascii.live
|
||||
- host: 192-168-197-2.traefik.me
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
- path: /ascii-live
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
|
@ -57,4 +57,4 @@ spec:
|
|||
tls:
|
||||
- secretName: ascii-live-tls-prod-cert
|
||||
hosts:
|
||||
- ascii.live
|
||||
- 192-168-197-2.traefik.me
|
4
main.go
4
main.go
|
@ -110,8 +110,8 @@ func main() {
|
|||
flag.Set("logtostderr", "true")
|
||||
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/list", listHandler).Methods("GET")
|
||||
r.HandleFunc("/{frameSource}", handler).Methods("GET")
|
||||
r.HandleFunc("/ascii-live/list", listHandler).Methods("GET")
|
||||
r.HandleFunc("/ascii-live/{frameSource}", handler).Methods("GET")
|
||||
r.NotFoundHandler = http.HandlerFunc(notFoundHandler)
|
||||
|
||||
srv := &http.Server{
|
||||
|
|
Loading…
Reference in a new issue