Skip to content

Commit

Permalink
Actions: Run the rsync image after build
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jul 2, 2024
1 parent bdde295 commit 2984024
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ jobs:
COMMIT_FROM: ${{ github.event.before }}
COMMIT_TO: ${{ github.event.after }}

- name: Test Rsync container
run: |
docker run --rm -t \
--name=syncing-ubuntu \
-e RSYNC_HOST=rsync.archive.ubuntu.com \
-e RSYNC_PATH=ubuntu/ \
-e RSYNC_EXTRA='--dry-run --no-r --dirs' \
--tmpfs /data \
--tmpfs /log \
ustcmirror/rsync
- name: Deploy
if: "github.ref == 'refs/heads/master' && github.repository == 'ustclug/ustcmirror-images'"
run: ./push.sh
Expand Down

0 comments on commit 2984024

Please sign in to comment.