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

Update out of order with main #2072

Merged
merged 193 commits into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
533cef6
Extend Makefile and Dockerfiles to support multiarch builds for all G…
pstibrany Apr 26, 2022
209fc0f
Update to latest dskit and memberlist fork (#1758)
56quarters Apr 26, 2022
b406e9e
update cli parameter description (#1760)
replay Apr 26, 2022
45baf66
mimirtool config: Add more retained old defaults (#1762)
dimitarvdimitrov Apr 27, 2022
198f017
dashboards: add flag to skip gateway (#1761)
jmcarp Apr 27, 2022
56de1d0
Gracefully shutdown querier when using query-scheduler (#1756)
pracucci Apr 27, 2022
c44b0bd
Graceful shutdown querier without query-scheduler (#1767)
pracucci Apr 28, 2022
abedab7
Increase continuous test query timeout (#1777)
pracucci Apr 28, 2022
1e17cd8
Increased default -tests.run-interval from 1m to 5m (#1778)
pracucci Apr 28, 2022
3a401ca
Fix flaky tests on querier graceful shutdown (#1779)
pracucci Apr 28, 2022
777cdeb
Update build image and GitHub workflow (#1781)
pstibrany Apr 28, 2022
7e8af99
api: remote duplicated remote read querier handler (#1776)
ortuman Apr 28, 2022
413b46e
Publish multiarch images (#1772)
pstibrany Apr 28, 2022
971a26c
K6: Take into account HTTP status code 202 (#1787)
wilfriedroset Apr 28, 2022
62148b2
replace model.Metric with labels.Labels in distributor.MetricsForLabe…
ch33hau Apr 29, 2022
f33dde0
Streaming remote read (#1735)
ortuman Apr 29, 2022
dd90026
Upgrade dskit (#1791)
pracucci Apr 29, 2022
c18b5ab
Fix mimir-continuous-test when changing configured num-series (#1775)
pracucci Apr 29, 2022
a9b2f3f
Do not export per user and integration Alertmanager metrics when valu…
pracucci Apr 29, 2022
48fe647
Print version+arch of Mimir loaded to Docker. (#1793)
pstibrany Apr 29, 2022
9302ea6
Remove unused metrics cortex_distributor_ingester_queries_total and c…
pracucci May 2, 2022
fb39490
Added options support to SendSumOfCountersPerUser() (#1794)
pracucci May 2, 2022
90aeee0
Changed all Grafana dashboards UIDs to not conflict with Cortex ones,…
pracucci May 3, 2022
b453b8c
Adopt mixin convention to set dashboard UIDs based on md5(filename) (…
pracucci May 3, 2022
7d278b6
Add support for store_gateway_zone args (#1807)
krajorama May 3, 2022
a34a384
Add protection to store-gateway to not drop all blocks if unhealthy i…
pracucci May 4, 2022
08495fb
Removed cortex_distributor_ingester_appends_total and cortex_distribu…
pracucci May 4, 2022
221caaa
Remove unused clientConfig from ingester (#1814)
pracucci May 4, 2022
286f204
Add tracing to `mimir-continuous-test` (#1795)
colega May 4, 2022
e926900
Chore: remove unused code from BucketStore (#1816)
pracucci May 5, 2022
24acc50
Refactoring: force removal of all blocks when BucketStore is closed (…
pracucci May 5, 2022
94bf372
Simplify FilterUsers() logic in store-gateway (#1819)
pracucci May 5, 2022
ac6547d
Migrate admin CSS to bootstrap 5 (#1821)
colega May 5, 2022
59f612e
ruler: make use of dskit `grpcclient.Config` on remote evaluation cli…
ortuman May 6, 2022
e789505
Memberlist status page CSS (#1824)
colega May 6, 2022
bb2f13b
Include `import` in jsonnet snippets (#1826)
zalegrala May 6, 2022
10b909b
Do not drop blocks in the store-gateway if missing in the ring (#1823)
pracucci May 6, 2022
3f95c81
Upgraded dskit to fix temporary partial query results when shuffle sh…
pracucci May 6, 2022
de312f1
Docs: ruler remote evaluation (#1714)
ortuman May 6, 2022
00f7738
Alertmanager: Do not validate alertmanager configuration if it's not …
stevesg May 9, 2022
8738cc8
Alertmanager: Allow usage with `local` storage type, with appropriate…
stevesg May 10, 2022
915eecd
Mixin: Additions to Top tenants dashboard regarding sample rate and d…
stevesg May 12, 2022
be7a465
Use concurrent open/close operations in compactor unit tests (#1844)
56quarters May 13, 2022
7e31240
Mixin: Show ingestion rate limit and rule group limit on Tenants dash…
stevesg May 13, 2022
720bb45
Jsonnet: Preparatory refactoring to simplify deploying parallel query…
stevesg May 13, 2022
2076e62
Removed double space in Log (#1849)
yusufpapurcu May 16, 2022
5f62039
Reference 'monolithic mode' instead of 'single binary' in logs (#1847)
pracucci May 16, 2022
718b9d9
Extend safeTemplateFilepath to cover more cases. (#1833)
pstibrany May 16, 2022
93dbb1f
Relax mimir-continuous-test pressure when deployed with Jsonnet (#1853)
pracucci May 16, 2022
0e3558c
Add 2.1.0-rc.0 header (#1857)
johannaratliff May 16, 2022
685d060
Prepare release 2.1 (#1859)
johannaratliff May 16, 2022
373bad5
Add patch in semver VERSION
johannaratliff May 16, 2022
a056a35
Adding updated ruler diagrams. (#1861)
09jvilla May 17, 2022
2a1bf20
Create v2-1.md (#1848)
09jvilla May 17, 2022
25ff2b9
Allow custom data source regex in mixin dashboards (#1802)
wilfriedroset May 17, 2022
b0ad829
Dashboards: Fix `container_memory_usage_bytes:sum` recording rule (#1…
pdf May 17, 2022
b096298
Deprecate -distributor.extend-writes and set it always to false (#1856)
pracucci May 17, 2022
f24932d
Remove DCO from contributors guidelines (#1867)
pracucci May 17, 2022
423818a
Create v2-1.md (#1848)
09jvilla May 17, 2022
5075013
Adding updated ruler diagrams. (#1861)
09jvilla May 17, 2022
4eb86ed
Deprecate -distributor.extend-writes and set it always to false (#1856)
pracucci May 17, 2022
64abe2a
Bump version to 2.1.0-rc.1 to include cherry-picked
johannaratliff May 17, 2022
6521eb9
List Johanna as 2.1.0 release shepherd (#1871)
johannaratliff May 17, 2022
d9d7943
fix(mixin): add missing alertmanager hashring members (#1870)
secustor May 18, 2022
c248b4e
Docs: clarify 'Set rule group' API specification (#1869)
pracucci May 18, 2022
5800efe
Simplify documentation publishing logic (#1820)
jdbaldry May 18, 2022
f4a398e
Fix capitalization of Jsonnet and Tanka (#1875)
jdbaldry May 18, 2022
3cd9130
Checkout the repository as part of the documentation sync (#1876)
jdbaldry May 18, 2022
14caf09
Fix manual workflow dispatch (#1877)
jdbaldry May 18, 2022
e517aa9
Simplify documentation publishing logic (#1820)
jdbaldry May 18, 2022
97979f6
Checkout the repository as part of the documentation sync (#1876)
jdbaldry May 18, 2022
b66260a
Fix manual workflow dispatch (#1877)
jdbaldry May 18, 2022
a2a3e36
Chore: cleanup unused alertmanager config in Mimir jsonnet (#1873)
pracucci May 18, 2022
57216e8
Update mimir-prometheus to ceaa77f1 (#1883)
colega May 18, 2022
8115df3
Bump version to 2.1.0-rc.1 to include cherry-picked (#1872)
johannaratliff May 18, 2022
74b03a6
Increased default configuration for -server.grpc-max-recv-msg-size-by…
pracucci May 19, 2022
364c762
Split mimir_queries rule group so that it doesn't have more than 20 r…
pstibrany May 19, 2022
bcc9c89
Add alert for store-gateways without blocks (#1882)
dimitarvdimitrov May 19, 2022
497c09e
Fix flaky integration tests caused by 'metric not found' (#1891)
pracucci May 19, 2022
1cc8f6d
Docs: Explain the runtime override of active series matchers (#1868)
gubjanos May 19, 2022
05bf2be
Update to latest Thanos for Memcached fixes (#1837)
56quarters May 19, 2022
1de5fd5
Fixed deceiving error log "failed to update cached shipped blocks aft…
pracucci May 20, 2022
a5838ad
Fix TestRulerEvaluationDelay flakyness (#1892)
pracucci May 20, 2022
ac7c63d
Fix `MimirRulerMissedEvaluations` text and add playbook (#1895)
dimitarvdimitrov May 20, 2022
49f76d3
Conform to tech doc style. (#1904)
osg-grafana May 20, 2022
8d0f66c
Use a dedicated threadpool for store-gateway requests (#1812)
56quarters May 20, 2022
95aac32
Upgrade consideration for active_series_custom_trackers_config (#1897)
gubjanos May 20, 2022
2f6fdd2
Upgrade consideration for active_series_custom_trackers_config (#1897)
gubjanos May 20, 2022
2a4b1bc
Merge pull request #1880 from grafana/jdb/2022-05-backport-documentat…
pracucci May 23, 2022
12929ad
fix(mixin): do not trigger TooMuchMemory alerts if no container limit…
secustor May 23, 2022
48cae31
Fix MimirCompactorHasNotUploadedBlocks alert false positive when Mimi…
pracucci May 23, 2022
0d6a400
Set defaults to query ingesters, not store, for recent data (#1909)
56quarters May 23, 2022
93b4421
Revert distributor log level to warn in integration tests (#1910)
pracucci May 24, 2022
046ff15
Improved error returned by -querier.query-store-after validation (#1914)
pracucci May 24, 2022
8d7e077
Remove jsonnet configuration settings that match default values (#1915)
56quarters May 24, 2022
8a6d886
Docs: recommend fast disks for ingesters and store-gateways (#1903)
pracucci May 24, 2022
f02b811
Improve series, sample, metadata and exemplars validation errors (#1907)
pracucci May 24, 2022
2bc9a79
mixin-tool: adapt screenshots dockerimage to support arm64 (#1916)
ortuman May 24, 2022
dd8418a
Ingester ring endpoint fix (#1918)
pstibrany May 24, 2022
b06298d
Configuration files for GrafanaCon 2022 presentation. (#1881)
pstibrany May 24, 2022
971f5c8
Update dskit to bring "Parallelize memberlist notified message proces…
pstibrany May 24, 2022
4af57ef
Account for StatefulSets and Depl-s named by the helm chart (#1913)
dimitarvdimitrov May 24, 2022
71e3e7c
Change shuffle sharding ingester lookback default config (#1921)
56quarters May 25, 2022
45fdb3a
Improved ValidateMetadata() errors (#1919)
pracucci May 25, 2022
679b9d6
mixin/dashboards: ruler query path dashboards (#1911)
ortuman May 25, 2022
fde9e3e
Mark query_ingesters_within and query_store_after as advanced (#1929)
56quarters May 25, 2022
4fcbed1
Remove empty chunks panel from Queries dashboard (#1928)
dimitarvdimitrov May 25, 2022
923686a
Make MimirGossipMembersMismatch less sensitive, and make it fire fewe…
pstibrany May 25, 2022
f87d288
Update config value for -querier.query-ingesters-within to work with …
zenador May 25, 2022
1dcd811
Update Thanos vendor for memcache improvements (#1920)
56quarters May 25, 2022
5f02203
Move usage generation to separate package (#1934)
pr00se May 25, 2022
46eddd3
Document CHANGELOG scopes
pr00se May 26, 2022
4a624a0
Improve instance limits, ingester limits, query limiter, some querier…
dimitarvdimitrov May 26, 2022
98df41b
make ingesters use heartbeat timeout instead of period to fix the bug…
zenador May 26, 2022
f35f74f
Update VERSION to 2.1.0
johannaratliff May 26, 2022
7c87ee7
Update dashboard screenshots (#1940)
pracucci May 26, 2022
840c686
Fix version in changelog
johannaratliff May 26, 2022
4118aa8
Changelog merge fixes
johannaratliff May 26, 2022
6007bd9
Update mimir tests to use new 2.1.0 image
johannaratliff May 26, 2022
52c1036
Merge pull request #1941 from grafana/merge-release-2.1-to-main
johannaratliff May 26, 2022
a41263e
Add minimum Grafana version to mixin dashboards (#1943)
Logiraptor May 26, 2022
ec514d5
Bump grafana/mimir image to 2.1.0 for backward compatibility testing …
johannaratliff May 26, 2022
3ace949
Chore: renamed source files for remote ruler dashboards (#1937)
pracucci May 30, 2022
d5601a1
Move the mimir-distributed helm chart into the mimir repository (#1925)
krajorama May 30, 2022
7aa6015
Add bucket prefix configuration (#1686)
dimitarvdimitrov May 30, 2022
0635166
Include full image tag on rollout dashboard (#1932)
dimitarvdimitrov May 30, 2022
144c76d
docs: move federated rule groups documentation to its own section (#1…
ortuman May 30, 2022
7f41774
Make networking panels pod matchers work with helm chart (#1927)
dimitarvdimitrov May 30, 2022
9dcf6db
Add max query length error to errors catalog (#1939)
pracucci May 30, 2022
99b964b
Remove image spec from demo file. (#1946)
pstibrany May 30, 2022
2560efd
Fix rejected identity accept encoding (#1864)
colega May 30, 2022
b21bcfc
Distributor: added per-tenant request limit (#1843)
ortuman May 30, 2022
d6de837
Add bucket prefix to experimental features (#1951)
dimitarvdimitrov May 30, 2022
0772991
Copy thanos shipper (#1957)
pstibrany May 31, 2022
7384937
Adjust the name of the tag expected by documentation publishing (#1974)
56quarters May 31, 2022
fc83295
Use github.com/colega/grafana-tools-sdk fork (#1973)
hjet May 31, 2022
fae0534
Deprecate -ingester.ring.join-after (#1965)
pracucci Jun 1, 2022
ca74607
Dashboards: disable gateway panels by default (#1955)
pracucci Jun 1, 2022
951a69b
Docs: rename 'playbooks' to 'runbooks' and move them to doc (#1970)
pracucci Jun 1, 2022
4a870e2
Preparation of e2eutils for Thanos indexheader unit tests. (#1982)
stevesg Jun 1, 2022
a0351ed
Make propagation of forwarding errors configurable (#1978)
replay Jun 1, 2022
205ead3
Release the mimir-distributed-beta helm chart (#1948)
krajorama Jun 1, 2022
8f278a3
Copy Thanos block/indexheader package (#1983)
stevesg Jun 1, 2022
78ea76b
Prepare mimir beta chart release (#1995)
krajorama Jun 1, 2022
017122b
Bump version of helm chart (#1996)
krajorama Jun 1, 2022
6603370
Update gopkg.in/yaml.v3 (#1989)
simonswine Jun 2, 2022
2c2c65d
Remove hardlinking in Shipper code. (#1969)
pstibrany Jun 2, 2022
8362bee
[helm] use grpc round robin for distributor clients (#1991)
Logiraptor Jun 2, 2022
3c27d4f
Fix binary_reader.go header text. (#1999)
stevesg Jun 2, 2022
85a0fb2
Workaround to keep using old memcached bitnami chart for now (#1998)
krajorama Jun 2, 2022
81e9935
[helm] add results cache (#1993)
Logiraptor Jun 2, 2022
58ff0d1
Disable distributor.extend-writes & ingester.ring.unregister-on-shutd…
Logiraptor Jun 2, 2022
4d0a447
Update CHANGELOG.md (#1992)
hjet Jun 2, 2022
4186478
[helm] Prepare image bump for 2.1 release (#2001)
Logiraptor Jun 2, 2022
a8b1648
Publish helm charts from release branches (#2002)
Logiraptor Jun 2, 2022
8bc28f1
Update Thanos with https://github.com/thanos-io/thanos/pull/5400. (#2…
pstibrany Jun 3, 2022
b631551
Replace hardcoded intervals with $__rate_interval in dashboards (#2011)
dimitarvdimitrov Jun 3, 2022
d4c0f37
Standardise error messages for distributor instance limits (#1984)
zenador Jun 3, 2022
c3b87b7
Remove tutorials/ symlink (#2007)
pracucci Jun 3, 2022
7f462dd
Add querier autoscaler support to jsonnet (#2013)
pracucci Jun 3, 2022
7a4b40a
Add a check to Mimir jsonnet to ensure query-scheduler is enabled whe…
pracucci Jun 3, 2022
8bff6d0
Don't include external labels in blocks uploaded by Ingester (#1972)
pstibrany Jun 3, 2022
0088e48
Enhance MimirRequestLatency runbook with more advice (#1967)
aknuds1 Jun 3, 2022
c25a9a5
Include helm-docs in build and CI (#2026)
krajorama Jun 3, 2022
591f694
Update contributing guides for the helm chart (#2008)
krajorama Jun 4, 2022
cfe513d
Add extraEnvFrom to all services and enable injection into mimir conf…
krajorama Jun 4, 2022
12a4e81
Docs: fix mimir-mixin installation instructions (#2015)
pracucci Jun 6, 2022
4a5df42
Docs: make documentation a first class citizen in CHANGELOG (#2025)
pracucci Jun 6, 2022
e6c2187
Helm: add global.extraEnv and global.extraEnvFrom (#2031)
krajorama Jun 6, 2022
322894e
Upgrade alpine to 3.16.0 (#2028)
williamzelesny Jun 6, 2022
e34522b
Helm: release our first weekly (#2033)
krajorama Jun 6, 2022
631126f
Set memcache chunks cache timeout to 450ms (#2035)
56quarters Jun 6, 2022
a76e296
[helm] Add test-enterprise for Helm CI (#2027)
Logiraptor Jun 6, 2022
66fb82f
Fix panic at startup when Mimir is running in monolithic mode and que…
pracucci Jun 7, 2022
c492cb8
Chore: remove obsolete comment from jsonnet (#2038)
pracucci Jun 7, 2022
b49fe67
Chore: introduced newDiscoveryService() util in jsonnet (#2037)
pracucci Jun 7, 2022
8415eb1
Chore: add some jsonnet utilities to reduce code duplication (#2039)
pracucci Jun 7, 2022
84e4901
Add a helm golden record (#2034)
Logiraptor Jun 7, 2022
6b5cc6a
Store Gateway: Add experimental configuration to use MAP_POPULATE for…
stevesg Jun 7, 2022
44463cf
Initialize Tanka with k8s-libsonnet v1.21. (#2051)
pstibrany Jun 8, 2022
e6e5dd3
Update Prometheus with async chunk mapper changes. (#2043)
pstibrany Jun 8, 2022
fa28ccf
Fix ruler config in getting started guide (#2052)
pracucci Jun 8, 2022
1d7da8f
Fix build for darwin platform. (#2054)
stevesg Jun 8, 2022
dd1c12a
mixin: adapt alerts/playbooks to consider ruler query path components…
ortuman Jun 8, 2022
716d0c6
Return and log detailed services information on /ready (#2055)
dimitarvdimitrov Jun 8, 2022
eb812fd
Add validation.RateLimited and TooManyHAClusters to errors catalogue …
zenador Jun 8, 2022
c95c61f
Add Patrick Oyarzun as Team Member (#2057)
Logiraptor Jun 8, 2022
29142fc
mimir-continuous-test: Add smoke test mode (#2047)
Logiraptor Jun 8, 2022
807f09e
Jsonnet: add compactor service (#2063)
pracucci Jun 9, 2022
4076f4a
Tidy up code and names for errors catalogue (#2056)
zenador Jun 9, 2022
e17cb56
ruler: report failed eval on any 5xx status (#2053)
ortuman Jun 9, 2022
e4ef7db
Merge branch 'main' into jvp/update-out-of-order-with-main
jesusvazquez Jun 10, 2022
a2bb750
Replace thanos dependency with a custom commit
jesusvazquez Jun 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .github/workflows/helm-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: helm-ci

on: pull_request

jobs:
call-lint:
uses: grafana/helm-charts/.github/workflows/linter.yml@main
with:
filter_regex_include: .*operations/helm/.*
call-lint-test:
uses: grafana/helm-charts/.github/workflows/lint-test.yaml@main
with:
ct_configfile: operations/helm/ct.yaml
ct_check_version_increment: false
19 changes: 19 additions & 0 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: helm-release

on:
push:
branches:
- main
- "release-[0-9]+.[0-9]+"

jobs:
call-update-helm-repo:
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@main
with:
charts_dir: operations/helm/charts
cr_configfile: operations/helm/cr.yaml
ct_configfile: operations/helm/ct.yaml
secrets:
helm_repo_token: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
# See https://github.com/grafana/helm-charts/blob/main/INTERNAL.md about this key
gpg_key_base64: ${{ secrets.HELM_SIGN_KEY_BASE64 }}
39 changes: 39 additions & 0 deletions .github/workflows/publish-technical-documentation-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "publish-technical-documentation-next"

on:
push:
branches:
- "main"
paths:
- "docs/sources/**"
workflow_dispatch:
jobs:
test:
runs-on: "ubuntu-latest"
steps:
- name: "Check out code"
uses: "actions/checkout@v3"
- name: "Build website"
run: |
docker run -v ${PWD}/docs/sources:/hugo/content/docs/mimir/latest -e HUGO_REFLINKSERRORLEVEL=ERROR --rm grafana/docs-base:latest /bin/bash -c 'make hugo'

sync:
runs-on: "ubuntu-latest"
needs: "test"
steps:
- name: "Check out code"
uses: "actions/checkout@v3"

- name: "Clone website-sync Action"
run: "git clone --single-branch --no-tags --depth 1 -b master https://grafanabot:${{ secrets.GH_BOT_ACCESS_TOKEN }}@github.com/grafana/website-sync ./.github/actions/website-sync"

- name: "Publish to website repository (next)"
uses: "./.github/actions/website-sync"
id: "publish-next"
with:
repository: "grafana/website"
branch: "master"
host: "github.com"
github_pat: "${{ secrets.GH_BOT_ACCESS_TOKEN }}"
source_folder: "docs/sources"
target_folder: "content/docs/mimir/next"
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: "publish-technical-documentation"
name: "publish-technical-documentation-release"

on:
push:
branches:
- "main"
- "release-*"
tags:
- "mimir-[0-9]+.[0-9]+.[0-9]+"
Expand Down Expand Up @@ -38,49 +37,29 @@ jobs:
- name: "Install Actions from library"
run: "npm install --production --prefix ./actions"

- name: "Determine technical documentation version"
uses: "./actions/docs-target"
id: "target"
- name: "Determine if there is a matching release tag"
id: "has-matching-release-tag"
uses: "./actions/has-matching-release-tag"
with:
ref_name: "${{ github.ref_name }}"
release_tag_regexp: "^mimir-(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
release_branch_regexp: "^release-(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"

- name: "Determine latest release tag"
id: "latest-released"
shell: "bash"
run: |
tag="$(git tag --sort=-v:refname | grep -E '^mimir-(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$' | head -n1)"
echo "::set-output name=tag::${tag}"

- name: "Determine latest release tag target"
- name: "Determine technical documentation version"
if: "steps.has-matching-release-tag.outputs.bool == 'true'"
uses: "./actions/docs-target"
id: "latest-released-target"
id: "target"
with:
ref_name: "${{ steps.latest-released.outputs.tag }}"
ref_name: "${{ github.ref_name }}"

- name: "Clone website-sync Action"
if: "steps.has-matching-release-tag.outputs.bool == 'true'"
run: "git clone --single-branch --no-tags --depth 1 -b master https://grafanabot:${{ secrets.GH_BOT_ACCESS_TOKEN }}@github.com/grafana/website-sync ./.github/actions/website-sync"

- name: "Publish to website repository (next)"
uses: "./.github/actions/website-sync"
id: "publish-next"
# Only publish on main branch.
if: "github.ref == 'refs/heads/main'"
with:
repository: "grafana/website"
branch: "master"
host: "github.com"
github_pat: "${{ secrets.GH_BOT_ACCESS_TOKEN }}"
source_folder: "docs/sources"
target_folder: "content/docs/mimir/next"

- name: "Publish to website repository (release)"
if: "steps.has-matching-release-tag.outputs.bool == 'true'"
uses: "./.github/actions/website-sync"
id: "publish-release"
# Only publish if the target of the latest release tag matches the target of this reference.
# For release tags the tag and reference are the same.
# For release branches, this guard prevents publishing documentation before a tag
# has been pushed that has officially "released" that documentation.
if: "steps.latest-released-target.outputs.target == steps.target.outputs.target"
with:
repository: "grafana/website"
branch: "master"
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/scripts/build-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# SPDX-License-Identifier: AGPL-3.0-only

set -o errexit
set -o nounset
set -o pipefail

OUTPUT="$1"
shift

mkdir "$OUTPUT"

# Build all supplied targets (will be prefixed with push-multiarch- prefix)
# shellcheck disable=SC2068
for target in $@
do
DIRNAME="$(dirname "$target")"
NAME="$(basename "$DIRNAME")"
make BUILD_IN_CONTAINER=false PUSH_MULTIARCH_TARGET="type=oci,dest=$OUTPUT/$NAME.oci" push-multiarch-$target
done
3 changes: 2 additions & 1 deletion .github/workflows/scripts/install-docker.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
# SPDX-License-Identifier: AGPL-3.0-only

set -x
VER="18.06.3-ce"
VER="20.10.14"
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
33 changes: 33 additions & 0 deletions .github/workflows/scripts/push-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
# SPDX-License-Identifier: AGPL-3.0-only

set -o errexit
set -o nounset
set -o pipefail

IMAGES_DIR="$1"
IMAGE_PREFIX="$2"
TAG="$3"

# If image is the latest stable git tag, also push :latest image.
# Do not tag with latest any release candidate (tag ends with "-rc.*").
EXTRA_TAG=""
if [[ "$(git tag | grep -E '^mimir-[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -n 1)" == "mimir-${TAG}" ]]; then
EXTRA_TAG="latest"
fi

# Push images from OCI archives to docker registry.
for image in "$IMAGES_DIR"/*
do
NAME=$(basename ${image%%.oci})
# --all uploads all platform images from OCI
echo
echo "Uploading ${IMAGE_PREFIX}${NAME}:${TAG}"
echo
skopeo copy --all --retry-times 3 oci-archive:${image} "docker://${IMAGE_PREFIX}${NAME}:${TAG}"

if [[ -n "${EXTRA_TAG}" ]]; then
echo "Tagging with ${EXTRA_TAG}"
skopeo copy --all --retry-times 3 "docker://${IMAGE_PREFIX}${NAME}:${TAG}" "docker://${IMAGE_PREFIX}${NAME}:${EXTRA_TAG}"
fi
done
1 change: 1 addition & 0 deletions .github/workflows/scripts/run-integration-tests-group.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# SPDX-License-Identifier: AGPL-3.0-only

SCRIPT_DIR=$(cd `dirname $0` && pwd)
INTEGRATION_DIR=$(realpath "${SCRIPT_DIR}/../../../integration/")
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scripts/run-unit-tests-group.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# SPDX-License-Identifier: AGPL-3.0-only

SCRIPT_DIR=$(cd `dirname $0` && pwd)
MIMIR_DIR=$(realpath "${SCRIPT_DIR}/../../../")
Expand Down
Loading