-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 1.03 KB
/
blank.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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
schedule:
- cron: "0 5 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login into Github Docker Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Login into Docker Hub
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
- name: Install regctl
uses: iarekylew00t/regctl-installer@v3
- name: Copy image to Frosh Registry for legacy
run: |
curl -L -s 'https://registry.hub.docker.com/v2/repositories/shopware/shopware-cli/tags?page_size=1024' | \
jq -r '."results"[] | select(.name | startswith("sha256") | not) | .name' | \
while read -r tag; do
regctl image copy shopware/shopware-cli:${tag} ghcr.io/friendsofshopware/shopware-cli:${tag}
done