rust/.forgejo/workflows/build-image.yml
Paul Campbell 1a5bd83c1e
All checks were successful
/ test (map[name:nightly]) (push) Successful in 1m47s
/ test (map[name:stable]) (push) Successful in 1m49s
/ test (map[name:v1.81.0]) (push) Successful in 1m32s
build: clear previous version from cache
2025-01-11 18:26:16 +00:00

26 lines
652 B
YAML

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 rmi git.kemitix.net/kemitix/rust:latest
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