From c47a49414a1d02666f885f933a6130d2831deed2 Mon Sep 17 00:00:00 2001 From: Joshua Seiger-Eatwell Date: Fri, 3 Jan 2025 08:01:28 +0100 Subject: [PATCH] added workflow --- .gitea/workflows/daily-build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/daily-build.yml diff --git a/.gitea/workflows/daily-build.yml b/.gitea/workflows/daily-build.yml new file mode 100644 index 0000000..85f18f2 --- /dev/null +++ b/.gitea/workflows/daily-build.yml @@ -0,0 +1,29 @@ +name: Daily Build Silverblue Image + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Gitea registry + uses: docker/login-action@v2 + with: + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_PASSWORD }} + + - name: Build Image + run: | + docker build -t git.joshua-se.com/joshuase96/silverblue-custom:latest . + + - name: Push Image + run: | + docker push git.joshua-se.com/joshuase96/silverblue-custom:latest