2025-01-09 17:26:55 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '30 1 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2025-01-10 21:12:04 +00:00
|
|
|
runs-on: ubuntu-latest
|
2025-01-09 17:26:55 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2025-01-10 20:27:27 +00:00
|
|
|
uses: actions/checkout@v4
|
2025-01-09 17:26:55 +00:00
|
|
|
|
2025-01-11 18:23:57 +00:00
|
|
|
- name: Clear image from cache
|
|
|
|
run: |
|
2025-01-12 18:56:43 +00:00
|
|
|
docker images git.kemitix.net/kemitix/rust -q | sort -u | xargs -r docker rmi --force
|
2025-01-11 18:23:57 +00:00
|
|
|
docker system prune --force --all
|
|
|
|
|
2025-01-09 17:26:55 +00:00
|
|
|
- name: Build
|
|
|
|
run: docker build . -t git.kemitix.net/kemitix/rust:latest
|
|
|
|
|
2025-01-11 08:15:40 +00:00
|
|
|
- name: Login
|
2025-01-11 17:05:37 +00:00
|
|
|
run: docker login --username kemitix --password ${{ secrets.FORGE_USER_PASSWORD }} git.kemitix.net
|
2025-01-11 08:15:40 +00:00
|
|
|
|
2025-01-09 17:26:55 +00:00
|
|
|
- name: Publish
|
|
|
|
run: docker push git.kemitix.net/kemitix/rust:latest
|