-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.18 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
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-dotnet: 'true'
remove-haskell: 'true'
# remove-android: 'true'
# remove-codeql: 'true'
- name: Checkout repository
uses: actions/checkout@v2
- name: Image Sync To Registry
id: read-images
run: |
bash docker-image-pusher.sh
# # - name: Clean up Docker
# # run: |
# # echo "Cleaning up Docker..."
# # docker system prune -f --all
# # docker rmi $(docker images -q) || true