26 lines
747 B
YAML
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
|