-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
61 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Pull Requests | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
pull-request: | ||
name: PR | ||
uses: canonical/observability/.github/workflows/rock-pull-request.yaml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "Publish ROCK to GHCR:dev" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
uses: canonical/observability/.github/workflows/rock-release-dev.yaml@main | ||
secrets: inherit | ||
with: | ||
rock-name: loki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Open a PR to OCI Factory | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
uses: canonical/observability/.github/workflows/rock-release-oci-factory.yaml@main | ||
secrets: inherit | ||
with: | ||
rock-name: loki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
# loki-rock | ||
|
||
[![Build ROCK](https://github.com/canonical/loki-rock/actions/workflows/build-rock.yaml/badge.svg)](https://github.com/canonical/loki-rock/actions/workflows/build-rock.yaml) | ||
[![Open a PR to OCI Factory](https://github.com/canonical/loki-rock/actions/workflows/rock-release-oci-factory.yaml/badge.svg)](https://github.com/canonical/loki-rock/actions/workflows/rock-release-oci-factory.yaml) | ||
[![Publish to GHCR:dev](https://github.com/canonical/loki-rock/actions/workflows/rock-release-dev.yaml/badge.svg)](https://github.com/canonical/loki-rock/actions/workflows/rock-release-dev.yaml) | ||
[![Update ROCK](https://github.com/canonical/loki-rock/actions/workflows/rock-update.yaml/badge.svg)](https://github.com/canonical/loki-rock/actions/workflows/rock-update.yaml) | ||
|
||
Automation for building a ROCK for Loki. Every fourth hour, the automation checks whether | ||
a new release has been cut in the upstream Loki repo, and if so, creates a pull request with | ||
the new version info. | ||
[ROCKs](https://canonical-rockcraft.readthedocs-hosted.com/en/latest/) for [Loki](https://grafana.com/oss/loki/). | ||
This repository holds all the necessary files to build ROCKs for the upstream versions we support. The Loki ROCK is used by the [loki-k8s-operator](https://github.com/canonical/loki-k8s-operator) charm. | ||
|
||
The ROCKs on this repository are built with [OCI Factory](https://github.com/canonical/oci-factory/), which also takes care of periodically rebuilding the images. | ||
|
||
Automation takes care of: | ||
* validating PRs, by simply trying to build the ROCK; | ||
* pulling upstream releases, creating a PR with the necessary files to be manually reviewed; | ||
* releasing to GHCR at [ghcr.io/canonical/loki:dev](https://ghcr.io/canonical/loki:dev), when merging to main, for development purposes. | ||
|
||
Once the PR gets merged, a new ROCK is built and published on ghcr.io/canonical/loki. |