-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.04 KB
/
sync-vault.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Sync VAULT"
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
./single_sync.sh modules/vault/images.yml false