-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.24 KB
/
push-images.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
36
37
38
39
40
41
42
43
44
45
46
47
name: Push Docker Images to Multiple Registries
on:
workflow_dispatch:
push:
branches: [ main ]
schedule:
- cron: '0 2 */7 * *'
env:
LOG_LEVEL: "${{ vars.LOG_LEVEL }}"
PRIVATE_REGISTRY_URLS: "${{ secrets.PRIVATE_REGISTRY_URLS }}"
PRIVATE_REGISTRY_USERNAME: "${{ secrets.PRIVATE_REGISTRY_USERNAME }}"
PRIVATE_REGISTRY_PASSWORD: "${{ secrets.PRIVATE_REGISTRY_PASSWORD }}"
DOCKER_USERNAME: "${{ secrets.DOCKER_USERNAME }}"
DOCKER_PASSWORD: "${{ secrets.DOCKER_PASSWORD }}"
jobs:
push-to-registries:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 2048
swap-size-mb: 128
remove-android: 'true'
remove-docker-images: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
build-mount-path: '/var/lib/docker'
# - name: Checkout repository
# uses: actions/checkout@v2
- name: check disk
run: |
df -h
docker images
du -sh /mnt/* || true
du -sh /* || true
du -sh /var/* || true
# - name: Image Sync To Registry
# id: read-images
# run: |
# bash docker-image-pusher.sh