Files
pkgdev-docker/.gitea/workflows/publish.yaml
Petr Polezhaev 437c74ea07
Some checks failed
publish / build-and-publish (push) Failing after 14s
publish: change user/password from auto-token to PAT
2026-02-03 01:10:18 +03:00

38 lines
894 B
YAML

name: publish
on:
workflow_dispatch:
push:
branches:
- master
tags:
- "v*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Construct image metadata from commit
id: meta
uses: docker/metadata-action@v5
with:
images: gentoo/pkgdev-docker
- name: Login to registry
uses: docker/login-action@v3
with:
registry: git.ratigorsk-12.ru
username: ${{secrets.DOCKER_REPOSITORY_USER}}
password: ${{secrets.DOCKER_REPOSITORY_PASSWORD}}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{github.event_name != 'pull_request'}}
tags: ${{steps.meta.outputs.tags}}
labels: ${{steps.meta.outputs.labels}}