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 }} # Second push target so the image is also available from GitHub Container # Registry under the user's account. The PAT only needs write:packages # (and read:packages if the package is private). Stored in Gitea as # secrets.GHCR_TOKEN; username is the literal GitHub login. - name: Login to GHCR uses: docker/login-action@v3 with: registry: ghcr.io username: shadowdao password: ${{ secrets.GHCR_TOKEN }} - name: Build Image uses: docker/build-push-action@v6 with: platforms: linux/amd64 push: true tags: | repo.anhonesthost.net/cloud-hosting-platform/haproxy-manager-base:latest ghcr.io/shadowdao/haproxy-manager-base:latest