From ef399a0e3d2f9a04ba1e2d0efe95fb4040af6a52 Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Tue, 1 Oct 2024 14:28:21 -0700 Subject: [PATCH] Add CI --- .gitea/workflows/build-push.yaml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/build-push.yaml diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml new file mode 100644 index 0000000..1730862 --- /dev/null +++ b/.gitea/workflows/build-push.yaml @@ -0,0 +1,34 @@ +name: Cloud Nginx Container +run-name: ${{ gitea.actor }} pushed a change to trunk +on: + push: + branches: + - trunk + +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/cloud-hosting-platform/cnc:latest -- 2.43.5