Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/restyler-mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: restyler-mirror

on:
workflow_dispatch:

permissions:
packages: write

jobs:
mirror:
runs-on: ubuntu-latest
env:
SRC: public.ecr.aws/restyled-io
DST: ghcr.io/toktok
steps:
- name: Log in to GHCR
run: echo '${{ github.token }}' | docker login ghcr.io -u '${{ github.actor }}' --password-stdin
- name: Mirror images
run: |
set -eu
for img in \
restyler-astyle:v3.6.2 \
restyler-autopep8:v2.3.2 \
restyler-black:v26.10.1 \
restyler-clang-format:v16.0.6 \
restyler-prettier:v3.9.10-6 \
restyler-reorder-python-imports:v3.19.0 \
restyler-shellharden:v4.3.2 \
restyler-shfmt:v3.14.1 \
restyler-yapf:v0.43.0-1; do
for i in 1 2 3 4 5; do docker pull "$SRC/$img" && break; sleep 15; done
docker tag "$SRC/$img" "$DST/$img"
docker push "$DST/$img"
done
12 changes: 12 additions & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,16 @@ restylers:
# Conflicts with "black"
- yapf:
enabled: false
- autopep8:
image: ghcr.io/toktok/restyler-autopep8:v2.3.2
- black:
image: ghcr.io/toktok/restyler-black:v26.10.1
- prettier-markdown:
image: ghcr.io/toktok/restyler-prettier:v3.9.10-6
- prettier-yaml:
image: ghcr.io/toktok/restyler-prettier:v3.9.10-6
- shellharden:
image: ghcr.io/toktok/restyler-shellharden:v4.3.2
- shfmt:
image: ghcr.io/toktok/restyler-shfmt:v3.14.1
- "*"
Loading