kubernaut/.gitea/workflows/release.yaml
Workflow config file is invalid. Please check your config file: yaml: line 10: found unexpected end of stream
Ryan Cavicchioni 968b75632c
Some checks failed
Gitea Actions Demo / lint (push) Successful in 2m16s
Gitea Actions Demo / test (push) Has been cancelled
make a separate release workflow
2025-03-30 16:16:52 -05:00

58 lines
1.3 KiB
YAML

name: release
on:
schedule:
- cron: "0 10 * * *"
push:
branches:
- "**"
tags:
- "v*.*.*
pull_request:
jobs:
docker:
needs: test
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: ryanc
DOCKER_LATEST: latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
image: |
git.kill0.net/ryanc/kubernaut
with:
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea registry
uses: docker/login-action@v3
with:
registry: git.kill0.net
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker build and push
uses: docker/build-push-action@v5
with:
push: true
tags: git.kill0.net/ryanc/kubernaut:latest