-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 927 Bytes
/
copy.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
name: copy
on:
push:
branches:
- main
jobs:
copy:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_READ_ONLY }}
- name: Login to github docker registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: imjasonh/[email protected]
# this will fail the first time when copying an image :/
- name: copy
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 2
command: ./copy.sh "ghcr.io/${{ github.repository_owner }}"