break Gitea actions up into separate files
This commit is contained in:
parent
2bef46ea1b
commit
529abe67b1
23
.gitea/workflows/lint.yaml
Normal file
23
.gitea/workflows/lint.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
name: Ruby Lint
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
|
- name: Ruby Setup
|
||||||
|
uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0
|
||||||
|
with:
|
||||||
|
ruby-version: '3.4'
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
- name: Standard Ruby
|
||||||
|
run: bundle exec standardrb
|
||||||
|
|
@ -1,65 +1,16 @@
|
|||||||
---
|
---
|
||||||
name: Gitea Actions Demo
|
name: Release
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 10 * * *"
|
- cron: "0 0 * * *"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "**"
|
- main
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- "v*.*.*"
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
checks: write
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- name: Login to Docker
|
|
||||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
|
||||||
with:
|
|
||||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
|
|
||||||
- name: Ruby Setup
|
|
||||||
uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0
|
|
||||||
with:
|
|
||||||
ruby-version: '3.4'
|
|
||||||
bundler-cache: true
|
|
||||||
|
|
||||||
- run: bundle install
|
|
||||||
|
|
||||||
- name: Standard Ruby
|
|
||||||
run: bundle exec standardrb
|
|
||||||
|
|
||||||
|
|
||||||
test:
|
|
||||||
needs: lint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0
|
|
||||||
with:
|
|
||||||
ruby-version: '3.4'
|
|
||||||
bundler-cache: true
|
|
||||||
|
|
||||||
- run: bundle exec rake
|
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
needs: test
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
env:
|
env:
|
||||||
DOCKER_ORG: ryanc
|
DOCKER_ORG: ryanc
|
||||||
DOCKER_LATEST: latest
|
DOCKER_LATEST: latest
|
||||||
@ -108,7 +59,8 @@ jobs:
|
|||||||
latest=auto
|
latest=auto
|
||||||
bake-target: docker-metadata-action
|
bake-target: docker-metadata-action
|
||||||
tags: |
|
tags: |
|
||||||
type=schedule
|
type=schedule,pattern=nightly
|
||||||
|
type=edge
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
@ -127,7 +79,8 @@ jobs:
|
|||||||
latest=auto
|
latest=auto
|
||||||
suffix=-alpine,onlatest=true
|
suffix=-alpine,onlatest=true
|
||||||
tags: |
|
tags: |
|
||||||
type=schedule
|
type=schedule,pattern=nightly
|
||||||
|
type=edge
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
22
.gitea/workflows/test.yaml
Normal file
22
.gitea/workflows/test.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
name: Ruby Test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0
|
||||||
|
with:
|
||||||
|
ruby-version: '3.4'
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
- run: bundle exec rake
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user