Compare commits

..

No commits in common. "9bd8d0c1312570bf8753234d6fa2d01a3dca50c4" and "af87ba5ed18a386003b110bd75aa0e5205aed2ed" have entirely different histories.

View File

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