From 133523d83bc2358cd9b9e1cbf846129b4cc7f4d7 Mon Sep 17 00:00:00 2001 From: nutcas3 Date: Sun, 26 Apr 2026 00:26:19 +0300 Subject: [PATCH] ci: Add Docker build and push steps for carrier-connector, charging-engine, packet-gateway, and CLI components - Add carrier-connector-meta and carrier-connector build/push steps with ghcr.io image tagging - Add charging-engine-meta and charging-engine build/push steps with ghcr.io image tagging - Add packet-gateway-meta and packet-gateway build/push steps with ghcr.io image tagging - Add cli-meta and CLI build/push steps with ghcr.io image tagging - Add carrier-image, charging-image, gateway-image, --- .github/workflows/deploy.yml | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 895dce5..1d7821a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,10 @@ jobs: packages: write outputs: api-image: ${{ steps.api-meta.outputs.tags }} + carrier-image: ${{ steps.carrier-meta.outputs.tags }} + charging-image: ${{ steps.charging-meta.outputs.tags }} + gateway-image: ${{ steps.gateway-meta.outputs.tags }} + cli-image: ${{ steps.cli-meta.outputs.tags }} dashboard-image: ${{ steps.dashboard-meta.outputs.tags }} steps: - name: Checkout code @@ -55,6 +59,78 @@ jobs: tags: ${{ steps.api-meta.outputs.tags }} labels: ${{ steps.api-meta.outputs.labels }} + - name: Extract metadata (Carrier Connector) + id: carrier-meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }}/carrier-connector + tags: | + type=ref,event=branch + type=ref,event=tag + type=sha,prefix={{branch}}- + + - name: Build and push carrier connector + uses: docker/build-push-action@v5 + with: + context: ./apps/carrier-connector + push: true + tags: ${{ steps.carrier-meta.outputs.tags }} + labels: ${{ steps.carrier-meta.outputs.labels }} + + - name: Extract metadata (Charging Engine) + id: charging-meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }}/charging-engine + tags: | + type=ref,event=branch + type=ref,event=tag + type=sha,prefix={{branch}}- + + - name: Build and push charging engine + uses: docker/build-push-action@v5 + with: + context: ./apps/charging-engine + push: true + tags: ${{ steps.charging-meta.outputs.tags }} + labels: ${{ steps.charging-meta.outputs.labels }} + + - name: Extract metadata (Packet Gateway) + id: gateway-meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }}/packet-gateway + tags: | + type=ref,event=branch + type=ref,event=tag + type=sha,prefix={{branch}}- + + - name: Build and push packet gateway + uses: docker/build-push-action@v5 + with: + context: ./apps/packet-gateway + push: true + tags: ${{ steps.gateway-meta.outputs.tags }} + labels: ${{ steps.gateway-meta.outputs.labels }} + + - name: Extract metadata (CLI) + id: cli-meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }}/cli + tags: | + type=ref,event=branch + type=ref,event=tag + type=sha,prefix={{branch}}- + + - name: Build and push CLI + uses: docker/build-push-action@v5 + with: + context: ./apps/cli + push: true + tags: ${{ steps.cli-meta.outputs.tags }} + labels: ${{ steps.cli-meta.outputs.labels }} + - name: Extract metadata (Dashboard) id: dashboard-meta uses: docker/metadata-action@v5