Stixx
9a94f6ea33
All checks were successful
Release to Gitea Container Registry / build_and_push (push) Successful in 11s
30 lines
866 B
YAML
30 lines
866 B
YAML
name: Release to Gitea Container Registry
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
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 -t git.nostrdev.com/stuff/blossom-cloudron .
|
|
|
|
- name: Tag Docker image
|
|
run: docker tag git.nostrdev.com/stuff/blossom-cloudron:latest git.nostrdev.com/stuff/blossom-cloudron:latest
|
|
|
|
- name: Push Docker image
|
|
run: docker push git.nostrdev.com/stuff/blossom-cloudron
|