Skip to content

Migrate publishing of new APT and YUM repos to GHA#24350

Merged
fheinecke merged 8 commits intomasterfrom
fred/oprt-migration-1
Apr 14, 2023
Merged

Migrate publishing of new APT and YUM repos to GHA#24350
fheinecke merged 8 commits intomasterfrom
fred/oprt-migration-1

Conversation

@fheinecke
Copy link
Copy Markdown
Contributor

This PR modifies drone/dronegen to use GHA to publish debs and rpms to the new APT and YUM repos.

Note that while this is a large PR, the majority of the changes are removing code/logic that has been migrated to GHA. The primary two files that need reviewed are dronegen/os_repos.go, and the code it produces in .drone.yml.

Important: once this PR is merged we will need to hold off on all releases/promotions until I run a final test (will take an estimated 8 hours) and backport/merge this PR to all previous feature branches that we want the ability to release from. If a release of any kind goes out during this time then we will have to perform an lengthy and complex disaster recovery that we haven't attempted before.

@fheinecke
Copy link
Copy Markdown
Contributor Author

fheinecke commented Apr 10, 2023

@fheinecke fheinecke enabled auto-merge April 14, 2023 19:42
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from fspmarshall April 14, 2023 19:42
@fheinecke fheinecke added this pull request to the merge queue Apr 14, 2023
Merged via the queue into master with commit 5690cb0 Apr 14, 2023
@fheinecke fheinecke deleted the fred/oprt-migration-1 branch April 14, 2023 20:09
@fheinecke
Copy link
Copy Markdown
Contributor Author

APT and YUM cache volumes have been populated.

fheinecke added a commit that referenced this pull request Apr 19, 2023
* Deleted OPRT from this repo

* Migrated dronegen to call gha workflow

* Removed dead pipelines

* Removed unused function to appease linter

* Accounted for private repo promotions

* Updated to use package name filter

* Accounted for teleport-ent-updater publishing
fheinecke added a commit that referenced this pull request Apr 19, 2023
* Increase GHA build timeout (#22926)

Our ARM64 build fails quite frequently due to 30 minutes timeout. This PR increases the build timeout to one hour.

* Migrate publishing of new APT and YUM repos to GHA (#24350)

* Deleted OPRT from this repo

* Migrated dronegen to call gha workflow

* Removed dead pipelines

* Removed unused function to appease linter

* Accounted for private repo promotions

* Updated to use package name filter

* Accounted for teleport-ent-updater publishing

* Added missing `mkdir` call when determining if a release is a pre-release. (#24634)

* Added missing mkdir call

* Updated to calculate dirname at dronegen time

* Removed "workflow-tag" argument from OPRT GHA call (#24637)

* Flipped environment logic for OS package promotion (#24639)

* Fixed OPRT migration issues (#24655)

* Fixed OPRT migration issues

* Removed package-to-test from unsupported teleport-ent-updater package

* Added flag to `gh-trigger-workflow` tool to wait for pre-existing runs (#24696)

* Added flag to `gh-trigger-workflow tool` to wait for pre-existing runs

* Addressed PR comments

* workflowId -> workflowID

* Id -> ID

* Updated promotion pipelines to publish OS packages in series (#24753)

* Removed pipeline

* Removed teleport-ent-updater deployment

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
fheinecke added a commit that referenced this pull request Apr 19, 2023
* Increase GHA build timeout (#22926)

Our ARM64 build fails quite frequently due to 30 minutes timeout. This PR increases the build timeout to one hour.

* Migrate publishing of new APT and YUM repos to GHA (#24350)

* Deleted OPRT from this repo

* Migrated dronegen to call gha workflow

* Removed dead pipelines

* Removed unused function to appease linter

* Accounted for private repo promotions

* Updated to use package name filter

* Accounted for teleport-ent-updater publishing

* Added missing `mkdir` call when determining if a release is a pre-release. (#24634)

* Added missing mkdir call

* Updated to calculate dirname at dronegen time

* Removed "workflow-tag" argument from OPRT GHA call (#24637)

* Flipped environment logic for OS package promotion (#24639)

* Fixed OPRT migration issues (#24655)

* Fixed OPRT migration issues

* Removed package-to-test from unsupported teleport-ent-updater package

* Added flag to `gh-trigger-workflow` tool to wait for pre-existing runs (#24696)

* Added flag to `gh-trigger-workflow tool` to wait for pre-existing runs

* Addressed PR comments

* workflowId -> workflowID

* Id -> ID

* Updated promotion pipelines to publish OS packages in series (#24753)

* Removed pipeline

* Removed teleport-ent-updater deployment

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
fheinecke added a commit that referenced this pull request Apr 20, 2023
* Increase GHA build timeout (#22926)

Our ARM64 build fails quite frequently due to 30 minutes timeout. This PR increases the build timeout to one hour.

* Migrate publishing of new APT and YUM repos to GHA (#24350)

* Deleted OPRT from this repo

* Migrated dronegen to call gha workflow

* Removed dead pipelines

* Removed unused function to appease linter

* Accounted for private repo promotions

* Updated to use package name filter

* Accounted for teleport-ent-updater publishing

* Added missing `mkdir` call when determining if a release is a pre-release. (#24634)

* Added missing mkdir call

* Updated to calculate dirname at dronegen time

* Removed "workflow-tag" argument from OPRT GHA call (#24637)

* Flipped environment logic for OS package promotion (#24639)

* Fixed OPRT migration issues (#24655)

* Fixed OPRT migration issues

* Removed package-to-test from unsupported teleport-ent-updater package

* Added flag to `gh-trigger-workflow` tool to wait for pre-existing runs (#24696)

* Added flag to `gh-trigger-workflow tool` to wait for pre-existing runs

* Addressed PR comments

* workflowId -> workflowID

* Id -> ID

* Updated promotion pipelines to publish OS packages in series (#24753)

* Removed pipeline

* Removed teleport-ent-updater deployment

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
fheinecke added a commit that referenced this pull request Apr 20, 2023
* OS packaging and auto updates backport - v12 (#24781)

* Increase GHA build timeout (#22926)

Our ARM64 build fails quite frequently due to 30 minutes timeout. This PR increases the build timeout to one hour.

* Migrate publishing of new APT and YUM repos to GHA (#24350)

* Deleted OPRT from this repo

* Migrated dronegen to call gha workflow

* Removed dead pipelines

* Removed unused function to appease linter

* Accounted for private repo promotions

* Updated to use package name filter

* Accounted for teleport-ent-updater publishing

* Added missing `mkdir` call when determining if a release is a pre-release. (#24634)

* Added missing mkdir call

* Updated to calculate dirname at dronegen time

* Removed "workflow-tag" argument from OPRT GHA call (#24637)

* Flipped environment logic for OS package promotion (#24639)

* Fixed OPRT migration issues (#24655)

* Fixed OPRT migration issues

* Removed package-to-test from unsupported teleport-ent-updater package

* Added flag to `gh-trigger-workflow` tool to wait for pre-existing runs (#24696)

* Added flag to `gh-trigger-workflow tool` to wait for pre-existing runs

* Addressed PR comments

* workflowId -> workflowID

* Id -> ID

* Updated promotion pipelines to publish OS packages in series (#24753)

* Removed pipeline

* Removed teleport-ent-updater deployment

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>

* Removed accidental backport of *-teleport-oci-distroless-images

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
r0mant pushed a commit that referenced this pull request Apr 20, 2023
* OS packaging and auto updates backport - v12 (#24781)

* Increase GHA build timeout (#22926)

Our ARM64 build fails quite frequently due to 30 minutes timeout. This PR increases the build timeout to one hour.

* Migrate publishing of new APT and YUM repos to GHA (#24350)

* Deleted OPRT from this repo

* Migrated dronegen to call gha workflow

* Removed dead pipelines

* Removed unused function to appease linter

* Accounted for private repo promotions

* Updated to use package name filter

* Accounted for teleport-ent-updater publishing

* Added missing `mkdir` call when determining if a release is a pre-release. (#24634)

* Added missing mkdir call

* Updated to calculate dirname at dronegen time

* Removed "workflow-tag" argument from OPRT GHA call (#24637)

* Flipped environment logic for OS package promotion (#24639)

* Fixed OPRT migration issues (#24655)

* Fixed OPRT migration issues

* Removed package-to-test from unsupported teleport-ent-updater package

* Added flag to `gh-trigger-workflow` tool to wait for pre-existing runs (#24696)

* Added flag to `gh-trigger-workflow tool` to wait for pre-existing runs

* Addressed PR comments

* workflowId -> workflowID

* Id -> ID

* Updated promotion pipelines to publish OS packages in series (#24753)

* Removed pipeline

* Removed teleport-ent-updater deployment

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>

* Resigned drone.yml

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants