Files
sqlite-backup-s3/.gitea/workflows/docker-build.yml

37 lines
794 B
YAML

name: docker-build
on:
push:
tags:
- "*"
permissions:
contents: read
packages: write
jobs:
build:
name: Build image
runs-on: ubuntu-22.04
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: git.realmanual.ru
username: ${{ gitea.actor }}
password: ${{ secrets.PUSH_TOKEN }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ gitea.repository }}:${GITHUB_REF#refs/tags/}
${{ gitea.repository }}:latest