Sync MONITORING #1170
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: "Sync MONITORING" | |
on: | |
push: | |
branches: | |
- "main" | |
schedule: | |
- cron: "0 2 * * *" | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Login to SIGHUP new Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: registry.sighup.io | |
username: ${{ secrets.SIGHUP_REGISTRY_USERNAME }} | |
password: ${{ secrets.SIGHUP_REGISTRY_PASSWORD }} | |
- name: Install yq | |
run: | | |
sudo apt-get update && sudo apt-get install -yqq wget | |
sudo wget -q https://github.com/mikefarah/yq/releases/download/v4.19.1/yq_linux_amd64 -O /usr/bin/yq | |
sudo chmod +x /usr/bin/yq | |
- name: Iterate | |
run: | | |
yq --version | |
docker run --rm quay.io/skopeo/stable:v1.13 --version | |
docker run -v ./login:/login --rm quay.io/skopeo/stable:v1.13 login --username ${{ secrets.DOCKERHUB_USERNAME }} --password ${{ secrets.DOCKERHUB_PASSWORD }} docker.io --authfile=/login/auth.json | |
docker run -v ./login:/login --rm quay.io/skopeo/stable:v1.13 login --username ${{ secrets.SIGHUP_REGISTRY_USERNAME }} --password ${{ secrets.SIGHUP_REGISTRY_PASSWORD }} registry.sighup.io --authfile=/login/auth.json | |
./single_sync_v2.sh modules/monitoring/images.yml false |