diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml new file mode 100644 index 0000000..b1ccbd2 --- /dev/null +++ b/.gitea/workflows/build-push.yaml @@ -0,0 +1,34 @@ +name: HAProxy Manager Build and Push +run-name: ${{ gitea.actor }} pushed a change to main +on: + push: + branches: + - main + +jobs: + Build-and-Push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + + - name: Login to Gitea + uses: docker/login-action@v3 + with: + registry: repo.anhonesthost.net + username: ${{ secrets.CI_USER }} + password: ${{ secrets.CI_TOKEN }} + + - name: Build Image + uses: docker/build-push-action@v6 + with: + platforms: linux/amd64 + push: true + tags: | + repo.anhonesthost.net/jknapp/haproxy-manager-base:latest diff --git a/README.md b/README.md index 2aaf4fd..ce9cc8d 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ A Flask-based API service for managing HAProxy configurations, domains, and SSL certificates. +To run the container: +```bash +docker run -d -p 80:80 -p 443:443 -p 8000:8000 -v lets-encrypt:/etc/letsencrypt -v haproxy:/etc/haproxy --name haproxy-manager repo.anhonesthost.net/jknapp/haproxy-manager-base:latest +``` + ## API Endpoints ### Health Check