From 4ba4b7ae1e38dd67bae330e347f791d38cd00a69 Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Tue, 1 Oct 2024 13:57:01 -0700 Subject: [PATCH] First attempt at creating CI with Gitea Actions --- .gitea/workflows/build-push.yaml | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 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..e9ac57c --- /dev/null +++ b/.gitea/workflows/build-push.yaml @@ -0,0 +1,41 @@ +name: Cloud Apache Container +run-name: ${{ gitea.actor }} pushed a change to trunk +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: false + tags: | + cloud-hosting-platform/cloud-apache-container/cac:latest + + - name: Push image to Gitea + run: | + docker buildx imagetools create \ + --tag repo.anhonesthost.net/cloud-hosting-platform/cloud-apache-container/cac:latest \ + cloud-hosting-platform/cloud-apache-container/cac:latest + \ No newline at end of file -- 2.43.5