backup-container/.forgejo/workflows/docker-publish.yml
Andras Schmelczer 4834f13325
All checks were successful
ShellCheck / shellcheck (pull_request) Successful in 5s
Docker / build (pull_request) Successful in 13s
Update https://code.forgejo.org/actions/checkout action to v7
2026-09-19 13:55:25 +00:00

22 lines
514 B
YAML

name: Docker
on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: docker
steps:
- name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v7
- name: Build and publish image
uses: http://forgejo:3000/andras/ci-actions/docker-publish@main
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}