Prometheus #36
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
name: Prometheus | |
on: | |
# push: | |
# branches: | |
# - main | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
Prometheus: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Pull and save Prometheus image | |
run: | | |
docker pull prom/prometheus:latest | |
docker save -o prom-prometheus-latest.tar.gz prom/prometheus:latest | |
- name: Upload Prometheus image artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: prom-prometheus-latest | |
path: prom-prometheus-latest.tar.gz | |
Alertmanager: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Pull and save Prometheus Alertmanager image | |
run: | | |
docker pull prom/alertmanager:latest | |
docker save -o prom-alertmanager-latest.tar.gz prom/alertmanager:latest | |
- name: Upload Prometheus Alertmanager image artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: prom-alertmanager-latest | |
path: prom-alertmanager-latest.tar.gz |