Skip to content

Commit f6d861a

Browse files
Use docker registry cache during github action (#10)
* Add docker registry caching * Cleanup observability test
1 parent 4deec63 commit f6d861a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/observability-docker.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
username: ${{ secrets.DOCKERHUB_USERNAME }}
4444
password: ${{ secrets.DOCKERHUB_TOKEN }}
4545

46+
- name: Set up Docker Buildx
47+
uses: docker/setup-buildx-action@v3
48+
4649
- name: Extract metadata (tags, labels) for Docker
4750
id: meta
4851
uses: docker/metadata-action@v5
@@ -66,9 +69,8 @@ jobs:
6669
push: true
6770
tags: ${{ steps.meta.outputs.tags }}
6871
labels: ${{ steps.meta.outputs.labels }}
69-
70-
71-
72+
cache-from: type=registry,ref=${{ matrix.image}}:buildcache
73+
cache-to: type=registry,ref=${{ matrix.image}}:buildcache,mode=max
7274

7375
test-observability-quickstart-scripts:
7476
runs-on: ubuntu-latest
@@ -82,6 +84,7 @@ jobs:
8284
uses: actions/setup-python@v4
8385
with:
8486
python-version: '3.9'
87+
cache: pip
8588

8689
- name: Install Python dependencies
8790
run: pip install -r observability/test/requirements.txt

observability/build-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ docker build -t cogstacksystems/cogstack-observability-grafana:latest -f grafana
77

88
docker build -t cogstacksystems/cogstack-observability-traefik:latest -f traefik/Dockerfile ./traefik
99

10-
docker build -t cogstacksystems/cogstack-observability-alloy:latest -f grafana-alloy/Dockerfile ./grafana-alloy --debug
10+
docker build -t cogstacksystems/cogstack-observability-alloy:latest -f grafana-alloy/Dockerfile ./grafana-alloy

observability/test/health-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def main():
3737
services = [
3838
(f"http://{localhost_url}/grafana", "Grafana"),
3939
(f"http://{localhost_url}/prometheus", "Prometheus"),
40-
# (f"http://{localhost_url}/alloy", "Alloy"),
40+
(f"http://{localhost_url}/alloy", "Alloy"),
4141
]
4242

4343
all_healthy = True

0 commit comments

Comments
 (0)