diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7eec50e..bdc53b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,3 +76,21 @@ jobs: platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.metadata.outputs.tags }} + + validate: + name: Validate + needs: [build-and-push] + runs-on: ubuntu-latest-m + + steps: + - name: Extract image tag + run: | + TAG=${{ github.event.release.tag_name }} + echo "TAG=${TAG#v}" >> $GITHUB_ENV + + - name: Set up Docker Desktop + id: start_desktop + uses: docker/desktop-action/start@v0.3.1 + + - name: Validate extension + run: docker extension validate digmaai/digma-docker-extension:${TAG} diff --git a/backend/server.js b/backend/server.js index 9b36df6..164fe5c 100644 --- a/backend/server.js +++ b/backend/server.js @@ -6,7 +6,7 @@ const { AnalyticsProvider } = require("./analyticsProvider"); var app = express(); app.use(express.json()); -var analyticsProvider = new AnalyticsProvider("https://digma-compound:5051"); +var analyticsProvider = new AnalyticsProvider(process.env.PLUGIN_API_URL); app.get("/environments", async function (req, res) { try { diff --git a/docker-compose.yaml b/docker-compose.yaml index 7f954fd..122c909 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,6 +1,8 @@ services: my-extension: image: ${DESKTOP_PLUGIN_IMAGE} + environment: + - PLUGIN_API_URL=https://${PLUGIN_API_URL:-digma-compound}:5051 nginx: image: digmaai/jaeger-ui:1.29.1-digma.0.1.4