diff --git a/.gitea/workflows/build_docker.yml b/.gitea/workflows/build_docker.yml new file mode 100644 index 0000000..fa9b44e --- /dev/null +++ b/.gitea/workflows/build_docker.yml @@ -0,0 +1,35 @@ +name: Workflow Example + +on: + - push + +jobs: + Build and push image: + runs-on: ubuntu + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup QEMU + uses: docker/setup-qemu-action@v3 + + - name: Setup Buildx + uses: docker/setup-buildx-action@v3 + with: + driver-opts: network=host + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: http://localhost:3000 + username: + password: + + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: | + localhost:3000/${{ gitea.repository }}:latest + localhost:3000/${{ gitea.repository }}:${{ gitea.sha }} \ No newline at end of file