Files
arch-repo/.gitea/workflows/commit.yaml
2025-10-21 08:23:47 +02:00

30 lines
844 B
YAML

name: Release
on:
push:
commit:
branches: ['main']
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
with:
config-inline: |
[registry."git.schreifuchs.ch"]
http = true
insecure = true
- name: login
run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: 'git.schreifuchs.ch/schreifuchs/arch-repo:${{ github.ref_name }},git.schreifuchs.ch/schreifuchs/arch-repo:latest'