on: schedule: - cron: '30 1 * * *' workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Clear image from cache run: | docker images git.kemitix.net/kemitix/rust -q | sort -u | xargs docker rmi docker system prune --force --all - name: Build run: docker build . -t git.kemitix.net/kemitix/rust:latest - name: Login run: docker login --username kemitix --password ${{ secrets.FORGE_USER_PASSWORD }} git.kemitix.net - name: Publish run: docker push git.kemitix.net/kemitix/rust:latest