Skip to content

Commit

Permalink
Merge pull request #2012 from opengovern/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mohamadch91 authored Nov 16, 2024
2 parents 7f734fd + 5663640 commit 07b3936
Show file tree
Hide file tree
Showing 40 changed files with 93 additions and 7,425 deletions.
43 changes: 1 addition & 42 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ jobs:
metadata-service: ${{ steps.build_services.outputs.metadata-service }}
post-install-worker: ${{ steps.build_services.outputs.post-install-worker }}
swagger-ui: ${{ steps.build_services.outputs.swagger-ui }}
analytics-worker: ${{ steps.build_services.outputs.analytics-worker }}
steampipe-plugin-opengovernance: ${{ steps.build_services.outputs.steampipe-plugin-opengovernance }}
integration-service: ${{ steps.build_services.outputs.integration-service }}
es-sink-service: ${{ steps.build_services.outputs.es-sink-service }}
Expand Down Expand Up @@ -618,45 +617,6 @@ jobs:
file: docker/SwaggerUIDockerfile
context: .

deploy-analytics-worker:
runs-on: ubuntu-latest
needs:
- build
- tag
- deploy-steampipe-plugin-opengovernance
- deploy-compliance-report-worker
permissions:
id-token: write
contents: read
environment: docker
if: (needs.build.outputs.steampipe-plugin-opengovernance == 'true' || needs.build.outputs.analytics-worker == 'true') && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: build
path: .
- name: Unpack artifact
run: |
tar -xvf build.tar.gz
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/analytics-worker:${{ needs.tag.outputs.latest_tag }}
file: docker/AnalyticsWorkerDockerfile
build-args: |
PLUGIN_REGISTRY=ghcr.io/opengovern
context: .

deploy-steampipe-plugin-opengovernance:
runs-on: ubuntu-latest
Expand All @@ -669,8 +629,7 @@ jobs:
environment: docker
if: (needs.build.outputs.steampipe-plugin-opengovernance == 'true' ||
needs.build.outputs.steampipe == 'true' ||
needs.build.outputs.compliance-report-worker == 'true' ||
needs.build.outputs.analytics-worker == 'true') && github.event_name != 'pull_request'
needs.build.outputs.compliance-report-worker == 'true') && github.event_name != 'pull_request'
steps:
- name: Check if we need to actually push
id: check_if_push
Expand Down
36 changes: 0 additions & 36 deletions cmd/analytics-worker/main.go

This file was deleted.

36 changes: 0 additions & 36 deletions docker/AnalyticsWorkerDockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions pkg/analytics/api/status.go

This file was deleted.

225 changes: 0 additions & 225 deletions pkg/analytics/command.go

This file was deleted.

19 changes: 0 additions & 19 deletions pkg/analytics/config/type.go

This file was deleted.

Loading

0 comments on commit 07b3936

Please sign in to comment.