make a separate release workflow
Some checks failed
Gitea Actions Demo / lint (push) Successful in 2m37s
Gitea Actions Demo / test (push) Successful in 2m14s
Gitea Actions Demo / docker (push) Failing after 1m37s

This commit is contained in:
Ryan Cavicchioni 2025-03-30 16:16:52 -05:00
parent af87ba5ed1
commit d19a04d75a
Signed by: ryanc
SSH Key Fingerprint: SHA256:KbXiwUnZnHFwFtt3Bytd+F3FN9pPHn1Z1cxMIE1TPbg
2 changed files with 43 additions and 5 deletions

View File

@ -1,7 +1,16 @@
---
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
on:
schedule:
- cron: "0 10 * * *"
push:
branches:
- "**"
tags:
- "v*.*.*"
pull_request:
jobs:
lint:
@ -40,9 +49,8 @@ jobs:
- run: bundle exec rake
release-image:
docker:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
@ -55,6 +63,21 @@ jobs:
with:
fetch-depth: 0 # all history for all branches and tags
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
image: |
git.kill0.net/ryanc/kubernaut
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
@ -68,5 +91,6 @@ jobs:
- name: Docker build and push
uses: docker/build-push-action@v5
with:
push: true
tags: git.kill0.net/ryanc/kubernaut:latest
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@ -0,0 +1,14 @@
name: release
on:
schedule:
- cron: "0 10 * * *"
push:
branches:
- "**"
tags:
- "v*.*.*"
pull_request:
jobs: