Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlink build and release workflows from internal distribution process #261

Conversation

dpotyralski
Copy link
Contributor

@dpotyralski dpotyralski commented Jul 3, 2024

Due to internal changes with GitHub workflows and the missing possibility to utilise reusable workflows from private repositories. Right now it has been decided to unlink the existing workflows from centralized-templates and make those currently existing ones repository-specific.

Linear story: DEVX-2677

Have you done ...

  • Unit tests

Copy link

linear bot commented Jul 3, 2024

Comment on lines 141 to 158
# Run Detekt
- name: Run Detekt
continue-on-error: true
if: ${{ github.ref == 'refs/heads/main' }}
run: ./gradlew detekt --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GH_REGISTRY_GRADLE_TOKEN }}
GRADLE_READ_KEY: ${{ secrets.GH_REGISTRY_GRADLE_TOKEN }}
JOB_RUNR_REPO_PASSWORD: ${{ secrets.JOB_RUNR_REPO_PASSWORD }}

# Publish Detekt results to GitHub.
- name: Publish Detekt SARIF report to GitHub
continue-on-error: true
if: ${{ github.ref == 'refs/heads/main' }}
uses: github/codeql-action/upload-sarif@d39d31e687223d841ef683f52467bd88e9b21c14 # v3
with:
sarif_file: build/reports/detekt/detekt.sarif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those reports are not in use.

@@ -413,291 +409,3 @@ jobs:
SLACK_USERNAME: GitHub Actions
SLACK_ICON_EMOJI: ":crashingrocket:"
SLACK_FOOTER: ""

publish-docker-image:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to publish a Docker image from the library.

echo "deploymentEnabled=${{ env.deploymentEnabled }}" >> "$GITHUB_OUTPUT"
echo "environmentTenant=${{ env.environmentTenant }}" >> "$GITHUB_OUTPUT"

wiz-cli:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is now no image to scan.

deps_policy: Pleo-Default-vulnerabilities-policy
secrets: inherit

trigger-deploy-gitops-product-dev:
Copy link
Contributor Author

@dpotyralski dpotyralski Jul 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is now no deployment to trigger.

@dpotyralski dpotyralski marked this pull request as ready for review July 3, 2024 13:52
@dpotyralski dpotyralski requested a review from a team as a code owner July 3, 2024 13:52
@DimitrisKaramanis
Copy link
Contributor

@dpotyralski Is this a copy-paste from the new cicd workflow, or you manipulated the files that exist here?

I think there are 2 "safe" options. Either keep everything as it is and simply remove these files from templates.yaml, or copy-paste the one from reuseble-workflows.

If we try to adjust the workflows that exist here, we might face some issues, because there is no easy way to test them

@dpotyralski
Copy link
Contributor Author

@dpotyralski Is this a copy-paste from the new cicd workflow, or you manipulated the files that exist here?

I think there are 2 "safe" options. Either keep everything as it is and simply remove these files from templates.yaml, or copy-paste the one from reuseble-workflows.

If we try to adjust the workflows that exist here, we might face some issues, because there is no easy way to test them

Those existing ones were distributed here from our templates, so are having the latest changes. I've decided to additionally clean them up from functionalities, which are not longer relevant.

@dpotyralski
Copy link
Contributor Author

Hey @pleo-io/team-invoices, would appreciate your eyes on this one 🙏

@dpotyralski dpotyralski added this pull request to the merge queue Jul 9, 2024
Merged via the queue into main with commit bbe2bfe Jul 9, 2024
8 of 9 checks passed
@dpotyralski dpotyralski deleted the feature/devx-2677-create-a-repo-specific-build-and-release-workflows-for-prop branch July 9, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants