devops: add gitea workflow for building and uploading docker images, update dockerfile and build script for compatibility.
build-and-upload-docker / build-and-upload (push) Failing after 16m31s

This commit is contained in:
Rebecca Valente
2025-07-11 00:19:37 -03:00
parent 77a3b16c79
commit e8b3a96c04
3 changed files with 44 additions and 4 deletions
@@ -0,0 +1,31 @@
name: build-and-upload-docker
on:
push:
branches:
- trunk
paths:
- 'Dockerfile'
- 'rootfs/**'
- 'build.sh'
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push
run: |
chmod +x ./build.sh
./build.sh