blossom-cloudron/.gitea/workflows/package.yml

27 lines
727 B
YAML
Raw Permalink Normal View History

2024-11-04 15:09:32 +00:00
name: Release to Gitea Container Registry
on:
push:
branches:
2024-11-04 15:13:37 +00:00
- master
2024-11-04 15:09:32 +00:00
jobs:
2024-11-04 15:13:37 +00:00
build_and_push:
2024-11-04 15:09:32 +00:00
runs-on: ubuntu-latest
2024-11-04 15:13:37 +00:00
steps:
- name: Check out repository
uses: actions/checkout@v3
2024-11-04 15:09:32 +00:00
2024-11-04 15:13:37 +00:00
- 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
2024-11-04 15:09:32 +00:00
2024-11-04 15:13:37 +00:00
- name: Build Docker image
2024-11-06 18:21:46 +00:00
run: docker build --no-cache -t git.nostrdev.com/stuff/blossom-cloudron .
2024-11-06 16:52:53 +00:00
2024-11-04 15:13:37 +00:00
- name: Push Docker image
run: docker push git.nostrdev.com/stuff/blossom-cloudron