rust/.forgejo/workflows/build-image.yml
Paul Campbell 1a89052244
All checks were successful
/ test (map[name:1.74.1]) (push) Successful in 5s
/ test (map[name:nightly]) (push) Successful in 5s
/ test (map[name:stable]) (push) Successful in 4s
build: use correct env var for auth
2025-01-12 19:44:16 +00:00

26 lines
747 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 images git.kemitix.net/${{ env.GITHUB_REPOSITORY }} -q | sort -u | xargs -r docker rmi --force
docker system prune --force --all
- name: Build
run: docker build . -t git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest
- name: Login
run: docker login git.kemitix.net --username kemitix --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }}
- name: Publish
run: docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest