rust/.forgejo/workflows/build-image.yml

27 lines
744 B
YAML
Raw Normal View History

on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:
jobs:
build:
runs-on: docker
steps:
- name: Checkout
2025-01-10 20:27:27 +00:00
uses: actions/checkout@v4
- name: Clear image from cache
run: |
docker images git.ragarock.moe/${{ env.GITHUB_REPOSITORY }} -q | sort -u | xargs -r docker rmi --force
docker system prune --force --all
- name: Build
run: docker build . -t git.ragarock.moe/${{ env.GITHUB_REPOSITORY }}:latest
2025-01-11 08:15:40 +00:00
- name: Login
run: docker login git.ragarock.moe --username silvana --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }}
2025-01-11 08:15:40 +00:00
- name: Publish
run: docker push git.ragarock.moe/${{ env.GITHUB_REPOSITORY }}:latest