workflows: sync grafana agent images -> images.onwalk.net
This commit is contained in:
parent
564b06e9d9
commit
0d8c55c6eb
31
.github/workflows/sync-images-grafana.yaml
vendored
Normal file
31
.github/workflows/sync-images-grafana.yaml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Sync Images for Grafana
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/sync-images-grafana.yaml'
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/sync-images-grafana.yaml'
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
grafana-agent:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Initialize and grafana agent images
|
||||
env:
|
||||
USER: ${{ secrets.IMAGES_REPO_USER }}
|
||||
PASSWORD: ${{ secrets.IMAGES_REPO_PASSWORD }}
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt update && sudo apt install -y git
|
||||
echo "$PASSWORD" | docker login --username=$USER --password-stdin images.onwalk.net
|
||||
docker pull docker.io/grafana/agent:v0.42.0
|
||||
docker tag docker.io/grafana/agent:v0.42.0 images.onwalk.net/public/grafana/agent:v0.42.0
|
||||
docker push images.onwalk.net/public/grafana/agent:v0.42.0
|
||||
Loading…
Reference in New Issue
Block a user