2025-01-09 17:26:55 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '30 1 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2025-01-20 08:14:40 +01:00
|
|
|
runs-on: docker
|
2025-01-09 17:26:55 +00:00
|
|
|
|
|
|
|
steps:
|
2025-01-20 08:14:40 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
2025-01-09 17:26:55 +00:00
|
|
|
|
2025-01-20 08:14:40 +01:00
|
|
|
- name: login to docker registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: git.ragarock.moe
|
|
|
|
username: silvana
|
|
|
|
password: ${{ secrets.FORCEJO_TOKEN_WRITE_PACKAGE }}
|
2025-01-11 18:23:57 +00:00
|
|
|
|
2025-01-20 08:14:40 +01:00
|
|
|
- name: setup buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
2025-01-09 17:26:55 +00:00
|
|
|
|
2025-01-20 08:14:40 +01:00
|
|
|
- name: build and push
|
|
|
|
uses: docker/build-and-push@v6
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: git.ragarock.moe/${{ env.GITHUB_REPOSITORY }}:latest
|
2025-01-11 08:15:40 +00:00
|
|
|
|
2025-01-20 08:14:40 +01:00
|
|
|
# - 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
|
|
|
|
|
|
|
|
# - name: Login
|
|
|
|
# run: docker login git.ragarock.moe --username silvana --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }}
|
|
|
|
|
|
|
|
# - name: Publish
|
|
|
|
# run: docker push git.ragarock.moe/${{ env.GITHUB_REPOSITORY }}:latest
|