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
|
|
|
|
run: docker build -t git.nostrdev.com/stuff/blossom-cloudron .
|
2024-11-04 15:09:32 +00:00
|
|
|
|
2024-11-06 16:52:53 +00:00
|
|
|
- name: Tag Docker image
|
|
|
|
run: docker tag git.nostrdev.com/stuff/blossom-cloudron:latest git.nostrdev.com/stuff/blossom-cloudron:latest
|
|
|
|
|
2024-11-04 15:13:37 +00:00
|
|
|
- name: Push Docker image
|
|
|
|
run: docker push git.nostrdev.com/stuff/blossom-cloudron
|