From cb073e987e32dc9d8502ae9b73f9c56243156a75 Mon Sep 17 00:00:00 2001 From: Joshua Seiger-Eatwell Date: Thu, 27 Mar 2025 22:17:08 +0100 Subject: [PATCH] Revert "removed ci" This reverts commit a0a2389db102625d48dd1cbcdcce85e88231ab71. --- .gitea/workflows/build-push-image.yml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/build-push-image.yml diff --git a/.gitea/workflows/build-push-image.yml b/.gitea/workflows/build-push-image.yml new file mode 100644 index 0000000..5ddfcc8 --- /dev/null +++ b/.gitea/workflows/build-push-image.yml @@ -0,0 +1,33 @@ +name: Build Silverblue Image + +on: + schedule: + - cron: '0 0 * * *' + push: + branches: + - main + +jobs: + build-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Gitea registry + uses: docker/login-action@v2 + with: + registry: git.joshua-se.com + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build Image + run: | + docker build -f Containerfile -t git.joshua-se.com/joshuase96/silverblue-custom:latest . + + - name: Push Image + run: | + docker push git.joshua-se.com/joshuase96/silverblue-custom:latest \ No newline at end of file