This repository has been archived on 2025-06-07. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
hugo-asciidoc-docker-ci/.forgejo/workflows/build.yaml
Marko Korhonen 8f78963464
All checks were successful
Build Docker image / Build and publish image (push) Successful in 3m17s
Add scheduled weekly build
2024-04-04 19:31:51 +03:00

32 lines
823 B
YAML

name: Build Docker image
on:
push:
schedule:
- cron: "0 6 * * 7"
jobs:
build_image:
name: Build and publish image
runs-on: docker
if: env.SCHEDULED == 'true' || !contains(github.event.commits[0].message, '[skip ci]')
env:
SCHEDULED: ${{ github.event_name == 'schedule' }}
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker registry (Forgejo)
uses: docker/login-action@v3
with:
registry: git.korhonen.cc
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
push: true
tags: git.korhonen.cc/functionalhacker/hugo-asciidoc-docker-ci