27 lines
723 B
YAML
Raw Normal View History

2025-03-05 17:56:45 +00:00
name: Release to Gitea Container Registry
on:
push:
branches:
- main
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Log in to local registry
uses: docker/login-action@v3
with:
registry: git.nostrdev.com
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} # gitea.token doesn't work for push, provide a personal access token
- name: Build Docker image
run: docker build --no-cache -t git.nostrdev.com/stuff/strfry-cloudron .
- name: Push Docker image
run: docker push git.nostrdev.com/stuff/strfry-cloudron