Skip to content

yukina: Update version #402

yukina: Update version

yukina: Update version #402

Workflow file for this run

name: Build
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ '*' ]
workflow_dispatch: {}
schedule:
- cron: '30 23 1 * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 50 # the same value as Travis CI
- name: Run build script
run: |
python3 configure.py
make all
env:
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' \
-e RSYNC_FILTER='- .trace' \
--tmpfs /data \
--tmpfs /log \
ustcmirror/rsync
- name: Deploy
if: "github.ref == 'refs/heads/master' && github.repository == 'ustclug/ustcmirror-images'"
run: ./push.sh
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}