From 2a992d397751136917c29e3bb70265496f378301 Mon Sep 17 00:00:00 2001 From: Joao Gilberto Magalhaes Date: Mon, 4 Dec 2023 01:25:22 -0600 Subject: [PATCH] Update Github Actions --- .github/workflows/build.yml | 16 +++++----- helm/easyhaproxy/LICENSE | 21 ++++++++++++ helm/easyhaproxy/README.md | 64 +++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 8 deletions(-) create mode 100644 helm/easyhaproxy/LICENSE create mode 100644 helm/easyhaproxy/README.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb991de..90ae618 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install requirements run: | @@ -48,14 +48,14 @@ jobs: uses: actions/checkout@v2 - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Log into registry if: github.event_name != 'pull_request' || github.event.inputs.push == 'true' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ secrets.DOCKER_REGISTRY }} username: ${{ secrets.DOCKER_REGISTRY_USER }} @@ -65,7 +65,7 @@ jobs: # https://github.com/docker/metadata-action - name: Extract Docker metadata id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ secrets.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }} @@ -89,7 +89,7 @@ jobs: # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - name: Build and push Docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: . file: build/Dockerfile @@ -118,12 +118,12 @@ jobs: env: DOC_GITHUB_TOKEN: '${{ secrets.DOC_TOKEN }}' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: startsWith(github.ref, 'refs/tags/') with: ref: master - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.ref == 'refs/heads/master' - name: Get result diff --git a/helm/easyhaproxy/LICENSE b/helm/easyhaproxy/LICENSE new file mode 100644 index 0000000..92dcb69 --- /dev/null +++ b/helm/easyhaproxy/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Joao Gilberto Magalhães + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/helm/easyhaproxy/README.md b/helm/easyhaproxy/README.md new file mode 100644 index 0000000..112106c --- /dev/null +++ b/helm/easyhaproxy/README.md @@ -0,0 +1,64 @@ +# EasyHAProxy + +EasyHAProxy is a simple and easy way to automate the creation of HAProxy configuration file based on Docker containers. + +The Helm package makes it easy to deploy EasyHAProxy on Kubernetes. + +More information about [EasyHAProxy](https://github.com/byjg/docker-easy-haproxy/blob/master/README.md). + +## Install + +```bash +helm repo add byjg https://opensource.byjg.com/helm +helm repo update byjg +helm upgrade --install --create-namespace -n easyhaproxy easyhaproxy byjg/easyhaproxy +``` + +## Parameters + +```yaml +image: + repository: byjg/easy-haproxy + pullPolicy: Always # IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: "" + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +service: + create: false # If false, it will create a Daemonset with hostPort. The easiest. + type: ClusterIP # or NodePort + annotations: {} + +binding: + ports: + http: 80 + https: 443 + stats: 1936 + additionalPorts: [] + +easyhaproxy: + stats: + username: admin + password: password + refresh: "10" + customErrors: "true" + sslMode: loose + logLevel: + certbot: DEBUG + easyhaproxy: DEBUG + haproxy: DEBUG + certbot: + email: "" + +# Make sure to create this +masterNode: + label: easyhaproxy/node + values: + - master +``` + + +