ci: add simple build workflow with self-hosted runners
Some checks failed
build-all-services / build (push) Failing after 2s
build-and-push / detect-changes (push) Successful in 4s
build-and-push / build (companies) (push) Failing after 3s
build-and-push / build (catering-services) (push) Failing after 4s
build-and-push / build (cron) (push) Failing after 3s
build-and-push / build (customers) (push) Failing after 3s
build-and-push / build (developers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 3s
build-and-push / build (fitness-trainers) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 3s
build-and-push / build (gateway) (push) Failing after 4s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (jobs) (push) Failing after 4s
build-and-push / build (leads) (push) Failing after 3s
build-and-push / build (makeup-artists) (push) Failing after 3s
build-and-push / build (payments) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 3s
build-and-push / build (photographers) (push) Failing after 3s
build-and-push / build (tutors) (push) Failing after 3s
build-and-push / build (ugc-content-creators) (push) Failing after 3s
build-and-push / build (users) (push) Failing after 2s
build-and-push / build (video-editors) (push) Failing after 3s
Some checks failed
build-all-services / build (push) Failing after 2s
build-and-push / detect-changes (push) Successful in 4s
build-and-push / build (companies) (push) Failing after 3s
build-and-push / build (catering-services) (push) Failing after 4s
build-and-push / build (cron) (push) Failing after 3s
build-and-push / build (customers) (push) Failing after 3s
build-and-push / build (developers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 3s
build-and-push / build (fitness-trainers) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 3s
build-and-push / build (gateway) (push) Failing after 4s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (jobs) (push) Failing after 4s
build-and-push / build (leads) (push) Failing after 3s
build-and-push / build (makeup-artists) (push) Failing after 3s
build-and-push / build (payments) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 3s
build-and-push / build (photographers) (push) Failing after 3s
build-and-push / build (tutors) (push) Failing after 3s
build-and-push / build (ugc-content-creators) (push) Failing after 3s
build-and-push / build (users) (push) Failing after 2s
build-and-push / build (video-editors) (push) Failing after 3s
This commit is contained in:
parent
0d35bf5649
commit
051a980f14
1 changed files with 44 additions and 0 deletions
44
.forgejo/workflows/build-simple.yaml
Normal file
44
.forgejo/workflows/build-simple.yaml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: build-all-services
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- high-performance
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and push all services
|
||||
run: |
|
||||
set -e
|
||||
REGISTRY="registry.nxtgauge.com"
|
||||
SHA="${{ github.sha }}"
|
||||
|
||||
SERVICES='gateway users companies jobs leads job-seekers customers payments employees photographers makeup-artists tutors developers video-editors graphic-designers social-media-managers fitness-trainers catering-services ugc-content-creators cron'
|
||||
|
||||
echo "Logging into registry..."
|
||||
echo "Ashwin@2026" | docker login $REGISTRY -u admin --password-stdin
|
||||
|
||||
for service in $SERVICES; do
|
||||
echo ""
|
||||
echo "=================================="
|
||||
echo "Building $service..."
|
||||
echo "=================================="
|
||||
|
||||
docker build -f Dockerfile.simple \
|
||||
--build-arg SERVICE_NAME=$service \
|
||||
-t "$REGISTRY/nxtgauge-rust-$service:$SHA" \
|
||||
-t "$REGISTRY/nxtgauge-rust-$service:latest" \
|
||||
. || echo "Failed to build $service"
|
||||
|
||||
docker push "$REGISTRY/nxtgauge-rust-$service:$SHA" || echo "Failed to push $service:$SHA"
|
||||
docker push "$REGISTRY/nxtgauge-rust-$service:latest" || echo "Failed to push $service:latest"
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "All services built and pushed!"
|
||||
Loading…
Add table
Reference in a new issue