Skip to content

Commit

Permalink
Merge pull request #2037 from opengovern/feat-change-jobs
Browse files Browse the repository at this point in the history
feat: change names
  • Loading branch information
mohamadch91 authored Nov 18, 2024
2 parents f2686d0 + 9fbf5f0 commit 50a734d
Show file tree
Hide file tree
Showing 26 changed files with 99 additions and 99 deletions.
106 changes: 53 additions & 53 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@ jobs:
outputs:
steampipe: ${{ steps.build_services.outputs.steampipe }}
auth-service: ${{ steps.build_services.outputs.auth-service }}
checkup-worker: ${{ steps.build_services.outputs.checkup-worker }}
compliance-report-worker: ${{ steps.build_services.outputs.compliance-report-worker }}
checkup-job: ${{ steps.build_services.outputs.checkup-job }}
compliance-report-job: ${{ steps.build_services.outputs.compliance-report-job }}
compliance-service: ${{ steps.build_services.outputs.compliance-service }}
compliance-summarizer: ${{ steps.build_services.outputs.compliance-summarizer }}
describe-scheduler: ${{ steps.build_services.outputs.describe-scheduler }}
compliance-summarizer-job: ${{ steps.build_services.outputs.compliance-summarizer-job }}
describe-scheduler-service: ${{ steps.build_services.outputs.describe-scheduler-service }}
inventory-service: ${{ steps.build_services.outputs.inventory-service }}
metadata-service: ${{ steps.build_services.outputs.metadata-service }}
post-install-worker: ${{ steps.build_services.outputs.post-install-worker }}
post-install-job: ${{ steps.build_services.outputs.post-install-job }}
swagger-ui: ${{ steps.build_services.outputs.swagger-ui }}
steampipe-plugin-opengovernance: ${{ steps.build_services.outputs.steampipe-plugin-opengovernance }}
cloudql: ${{ steps.build_services.outputs.cloudql }}
integration-service: ${{ steps.build_services.outputs.integration-service }}
es-sink-service: ${{ steps.build_services.outputs.es-sink-service }}
query-runner-worker: ${{ steps.build_services.outputs.query-runner-worker }}
query-validator-worker: ${{ steps.build_services.outputs.query-validator-worker }}
demo-importer-worker: ${{ steps.build_services.outputs.demo-importer-worker }}
query-runner-job: ${{ steps.build_services.outputs.query-runner-job }}
query-validator-job: ${{ steps.build_services.outputs.query-validator-job }}
demo-importer-job: ${{ steps.build_services.outputs.demo-importer-job }}

env:
SERVICE_LIST: ${{ github.event.inputs.servicesList }}
Expand Down Expand Up @@ -146,12 +146,12 @@ jobs:
needs:
- build
- tag
- deploy-steampipe-plugin-opengovernance
- deploy-cloudql
permissions:
id-token: write
contents: read
environment: docker
if: (needs.build.outputs.steampipe-plugin-opengovernance == 'true' || needs.build.outputs.steampipe == 'true') && github.event_name != 'pull_request'
if: (needs.build.outputs.cloudql == 'true' || needs.build.outputs.steampipe == 'true') && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
file: docker/AuthServiceDockerfile
context: .

deploy-checkup-worker:
deploy-checkup-job:
runs-on: ubuntu-latest
needs:
- build
Expand All @@ -225,7 +225,7 @@ jobs:
id-token: write
contents: read
environment: docker
if: needs.build.outputs.checkup-worker == 'true' && github.event_name != 'pull_request'
if: needs.build.outputs.checkup-job == 'true' && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -248,22 +248,22 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/checkup-worker:${{ needs.tag.outputs.latest_tag }}
file: docker/CheckupWorkerDockerfile
ghcr.io/${{ github.repository_owner }}/checkup-job:${{ needs.tag.outputs.latest_tag }}
file: docker/CheckupJobDockerfile
context: .

deploy-compliance-report-worker:
deploy-compliance-report-job:
runs-on: ubuntu-latest
needs:
- build
- tag
- deploy-steampipe-plugin-opengovernance
- deploy-cloudql
- deploy-steampipe
permissions:
id-token: write
contents: read
environment: docker
if: (needs.build.outputs.steampipe-plugin-opengovernance == 'true' || needs.build.outputs.compliance-report-worker == 'true') && github.event_name != 'pull_request'
if: (needs.build.outputs.cloudql == 'true' || needs.build.outputs.compliance-report-job == 'true') && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -286,13 +286,13 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/compliance-report-worker:${{ needs.tag.outputs.latest_tag }}
file: docker/ComplianceReportWorkerDockerfile
ghcr.io/${{ github.repository_owner }}/compliance-report-job:${{ needs.tag.outputs.latest_tag }}
file: docker/ComplianceReportJobDockerfile
build-args: |
PLUGIN_REGISTRY=ghcr.io/opengovern
context: .

deploy-compliance-summarizer:
deploy-compliance-summarizer-job:
runs-on: ubuntu-latest
needs:
- build
Expand All @@ -301,7 +301,7 @@ jobs:
id-token: write
contents: read
environment: docker
if: needs.build.outputs.compliance-summarizer == 'true' && github.event_name != 'pull_request'
if: needs.build.outputs.compliance-summarizer-job == 'true' && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -324,8 +324,8 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/compliance-summarizer:${{ needs.tag.outputs.latest_tag }}
file: docker/ComplianceSummarizerDockerfile
ghcr.io/${{ github.repository_owner }}/compliance-summarizer-job:${{ needs.tag.outputs.latest_tag }}
file: docker/ComplianceSummarizerJobDockerfile
build-args: |
PLUGIN_REGISTRY=ghcr.io/opengovern
context: .
Expand Down Expand Up @@ -366,7 +366,7 @@ jobs:
file: docker/ComplianceServiceDockerfile
context: .

deploy-describe-scheduler:
deploy-describe-scheduler-service:
runs-on: ubuntu-latest
needs:
- build
Expand All @@ -375,7 +375,7 @@ jobs:
id-token: write
contents: read
environment: docker
if: needs.build.outputs.describe-scheduler == 'true' && github.event_name != 'pull_request'
if: needs.build.outputs.describe-scheduler-service == 'true' && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -398,8 +398,8 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/describe-scheduler:${{ needs.tag.outputs.latest_tag }}
file: docker/DescribeSchedulerDockerfile
ghcr.io/${{ github.repository_owner }}/describe-scheduler-service:${{ needs.tag.outputs.latest_tag }}
file: docker/DescribeSchedulerServiceDockerfile
context: .

deploy-integration-service:
Expand Down Expand Up @@ -545,7 +545,7 @@ jobs:
file: docker/MetadataServiceDockerfile
context: .

deploy-post-install-worker:
deploy-post-install-job:
runs-on: ubuntu-latest
needs:
- build
Expand All @@ -554,7 +554,7 @@ jobs:
id-token: write
contents: read
environment: docker
if: needs.build.outputs.post-install-worker == 'true' && github.event_name != 'pull_request'
if: needs.build.outputs.post-install-job == 'true' && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -577,8 +577,8 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/post-install:${{ needs.tag.outputs.latest_tag }}
file: docker/PostInstallDockerfile
ghcr.io/${{ github.repository_owner }}/post-install-job:${{ needs.tag.outputs.latest_tag }}
file: docker/PostInstallJobDockerfile
context: .
deploy-swagger-ui:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -617,7 +617,7 @@ jobs:
context: .


deploy-steampipe-plugin-opengovernance:
deploy-cloudql:
runs-on: ubuntu-latest
needs:
- build
Expand All @@ -626,14 +626,14 @@ jobs:
id-token: write
contents: read
environment: docker
if: (needs.build.outputs.steampipe-plugin-opengovernance == 'true' ||
if: (needs.build.outputs.cloudql == 'true' ||
needs.build.outputs.steampipe == 'true' ||
needs.build.outputs.compliance-report-worker == 'true') && github.event_name != 'pull_request'
needs.build.outputs.compliance-report-job == 'true') && github.event_name != 'pull_request'
steps:
- name: Check if we need to actually push
id: check_if_push
run: |
if [[ -z "${{ needs.build.outputs.steampipe-plugin-opengovernance }}" ]]; then
if [[ -z "${{ needs.build.outputs.cloudql }}" ]]; then
echo "do_build=false" >> $GITHUB_OUTPUT
else
echo "do_build=true" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -663,25 +663,25 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/steampipe-plugin-opengovernance:0.0.1
ghcr.io/${{ github.repository_owner }}/steampipe-plugin-opengovernance:${{ needs.tag.outputs.latest_tag }}
file: docker/SteampipePluginOpengovernanceDockerfile
ghcr.io/${{ github.repository_owner }}/cloudql:0.0.1
ghcr.io/${{ github.repository_owner }}/cloudql:${{ needs.tag.outputs.latest_tag }}
file: docker/CloudQLDockerfile
context: .



deploy-query-runner-worker:
deploy-query-runner-job:
runs-on: ubuntu-latest
needs:
- build
- tag
- deploy-steampipe-plugin-opengovernance
- deploy-cloudql
- deploy-steampipe
permissions:
id-token: write
contents: read
environment: docker
if: needs.build.outputs.query-runner-worker == 'true' && github.event_name != 'pull_request'
if: needs.build.outputs.query-runner-job == 'true' && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -704,24 +704,24 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/query-runner-worker:${{ needs.tag.outputs.latest_tag }}
file: docker/QueryRunnerWorkerDockerfile
ghcr.io/${{ github.repository_owner }}/query-runner-job:${{ needs.tag.outputs.latest_tag }}
file: docker/QueryRunnerJobDockerfile
build-args: |
PLUGIN_REGISTRY=ghcr.io/opengovern
context: .

deploy-query-validator-worker:
deploy-query-validator-job:
runs-on: ubuntu-latest
needs:
- build
- tag
- deploy-steampipe-plugin-opengovernance
- deploy-cloudql
- deploy-steampipe
permissions:
id-token: write
contents: read
environment: docker
if: needs.build.outputs.query-validator-worker == 'true' && github.event_name != 'pull_request'
if: needs.build.outputs.query-validator-job == 'true' && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -744,8 +744,8 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/query-validator-worker:${{ needs.tag.outputs.latest_tag }}
file: docker/QueryValidatorWorkerDockerfile
ghcr.io/${{ github.repository_owner }}/query-validator-job:${{ needs.tag.outputs.latest_tag }}
file: docker/QueryValidatorJobDockerfile
build-args: |
PLUGIN_REGISTRY=ghcr.io/opengovern
context: .
Expand Down Expand Up @@ -806,7 +806,7 @@ jobs:
build-args: |
PLUGIN_REGISTRY=ghcr.io/opengovern
context: .
deploy-demo-importer-worker:
deploy-demo-importer-job:
runs-on: ubuntu-latest
needs:
- build
Expand All @@ -815,7 +815,7 @@ jobs:
id-token: write
contents: read
environment: docker
if: needs.build.outputs.demo-importer-worker == 'true' && github.event_name != 'pull_request'
if: needs.build.outputs.demo-importer-job == 'true' && github.event_name != 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -838,8 +838,8 @@ jobs:
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/demo-importer:${{ needs.tag.outputs.latest_tag }}
file: docker/DemoImporterDockerfile
ghcr.io/${{ github.repository_owner }}/demo-importer-job:${{ needs.tag.outputs.latest_tag }}
file: docker/DemoImporterJobDockerfile
context: .

deploy-dex-login:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/${{ github.repository_owner }}/web-ui:${{ steps.tag_version.outputs.new_tag }}
file: docker/WebUiDockerfile
file: docker/WebUiServiceDockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
10 changes: 5 additions & 5 deletions build_services
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
auth-service
checkup-worker
checkup-job
cli
cloud-inventory
compliance-report-worker
compliance-report-job
compliance-service
describe-scheduler
describe-scheduler-service-service-service-service-service-service
hopper
inventory-service
metadata-service
Expand All @@ -14,5 +14,5 @@ reporter
summarizer-worker
swagger-ui
cost-estimator-service
query-runner-worker
demo-importer-worker
query-runner-job
demo-importer-job
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ RUN apk --no-cache add ca-certificates

FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./build/checkup-worker /
CMD [ "/checkup-worker" ]
COPY ./build/checkup-job /
CMD [ "/checkup-job" ]
3 changes: 3 additions & 0 deletions docker/CloudQLDockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:latest

COPY ./build/cloudql /cloudql.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azure:0.0.1 as azure
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-azuread:0.0.1 as azuread
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-github:0.0.1 as github
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-digitalocean:0.0.1 as digitalocean
FROM ${PLUGIN_REGISTRY}/steampipe-plugin-opengovernance:0.0.1 as opengovernance
FROM ${PLUGIN_REGISTRY}/cloudql:0.0.1 as opengovernance

FROM ubuntu:20.04 AS base
RUN apt-get update && apt-get install -y \
Expand All @@ -19,7 +19,7 @@ COPY --from=azure /steampipe-plugin-azure.plugin /home/steampipe/.steampipe/plug
COPY --from=azuread /steampipe-plugin-azuread.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/azuread@latest/steampipe-plugin-azuread.plugin
COPY --from=github /steampipe-plugin-github.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/github@latest/steampipe-plugin-github.plugin
COPY --from=digitalocean /steampipe-plugin-digitalocean.plugin /home/steampipe/.steampipe/plugins/hub.steampipe.io/plugins/turbot/digitalocean@latest/steampipe-plugin-digitalocean.plugin
COPY --from=opengovernance /steampipe-plugin-opengovernance.plugin /home/steampipe/.steampipe/plugins/local/opengovernance/opengovernance.plugin
COPY --from=opengovernance /cloudql.plugin /home/steampipe/.steampipe/plugins/local/opengovernance/opengovernance.plugin

USER root
RUN useradd -ms /bin/bash steampipe
Expand All @@ -34,7 +34,7 @@ USER steampipe

RUN steampipe plugin list

COPY ./build/query-runner-worker /
COPY ./build/compliance-report-job /

ENTRYPOINT [ "/query-runner-worker" ]
CMD [ "/query-runner-worker" ]
ENTRYPOINT [ "/compliance-report-job" ]
CMD [ "/compliance-report-job" ]
Loading

0 comments on commit 50a734d

Please sign in to comment.