Skip to content

Commit

Permalink
Merge pull request #1 from kaiwalyajoshi/kjoshi/release-workflow
Browse files Browse the repository at this point in the history
chore: Add D2iQ Release GHA for patched images.
  • Loading branch information
kaiwalyajoshi authored Jan 4, 2024
2 parents 92711b0 + a25f7a2 commit dd4c88b
Show file tree
Hide file tree
Showing 16 changed files with 193 additions and 51 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Reference: https://help.github.com/en/articles/about-code-owners
# Order is important: later rules override preceding rules
* @mesosphere/kommander
9 changes: 6 additions & 3 deletions .github/workflows/cron-licenses.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: cron-licenses

on:
schedule:
- cron: "7 0 * * 1" # every Monday at 00:07 UTC
# Automated releases explicitly disabled for this fork.
# schedule:
# - cron: "7 0 * * 1" # every Monday at 00:07 UTC
workflow_dispatch:

jobs:
cron-licenses:
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
if: github.repository == 'go-gitea/gitea'
steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/cron-lock.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: cron-lock

on:
schedule:
- cron: "0 0 * * *" # every day at 00:00 UTC
# Automated releases explicitly disabled for this fork.
# schedule:
# - cron: "0 0 * * *" # every day at 00:00 UTC
workflow_dispatch:

permissions:
Expand All @@ -14,7 +15,9 @@ concurrency:

jobs:
action:
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
if: github.repository == 'go-gitea/gitea'
steps:
- uses: dessant/lock-threads@v5
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/cron-translations.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: cron-translations

on:
schedule:
- cron: "7 0 * * *" # every day at 00:07 UTC
# @kaiwalyajoshi: Automated releases explicitly disabled for this fork.
# schedule:
# - cron: "7 0 * * *" # every day at 00:07 UTC
workflow_dispatch:

jobs:
crowdin-pull:
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
if: github.repository == 'go-gitea/gitea'
steps:
- uses: actions/checkout@v4
Expand All @@ -32,7 +35,9 @@ jobs:
remote: "[email protected]:go-gitea/gitea.git"
ssh_key: ${{ secrets.DEPLOY_KEY }}
crowdin-push:
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
if: github.repository == 'go-gitea/gitea'
steps:
- uses: actions/checkout@v4
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/d2iq-release-tag-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: d2iq-release-tag-version

on:
workflow_dispatch:
inputs:
releaseTag:
description: 'Existing Tag to checkout.'
type: string
required: true
default: ''
imageName:
description: 'Release Image Name'
type: string
required: true
default: 'docker.io/mesosphere/gitea:latest'

jobs:
docker-rootless:
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.releaseTag }}
fetch-tags: true
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_READ_WRITE_USERNAME }}
password: ${{ secrets.DOCKER_READ_WRITE_PASSWORD }}
- name: build rootless docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: Dockerfile.rootless
tags: ${{ inputs.imageName }}
4 changes: 3 additions & 1 deletion .github/workflows/disk-clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:

jobs:
triage:
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- name: Free Disk Space (Ubuntu)
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/files-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ on:

jobs:
detect:
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
timeout-minutes: 3
outputs:
backend: ${{ steps.changes.outputs.backend }}
Expand Down
44 changes: 33 additions & 11 deletions .github/workflows/pull-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
lint-backend:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -29,7 +31,9 @@ jobs:
lint-templates:
if: needs.files-changed.outputs.templates == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand All @@ -42,7 +46,9 @@ jobs:
lint-yaml:
if: needs.files-changed.outputs.yaml == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand All @@ -55,7 +61,9 @@ jobs:
lint-swagger:
if: needs.files-changed.outputs.swagger == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -67,7 +75,9 @@ jobs:
lint-go-windows:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -84,7 +94,9 @@ jobs:
lint-go-gogit:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -99,7 +111,9 @@ jobs:
checks-backend:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -112,7 +126,9 @@ jobs:
frontend:
if: needs.files-changed.outputs.frontend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -127,7 +143,9 @@ jobs:
backend:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down Expand Up @@ -159,7 +177,9 @@ jobs:
docs:
if: needs.files-changed.outputs.docs == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -172,7 +192,9 @@ jobs:
actions:
if: needs.files-changed.outputs.actions == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/pull-db-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
test-pgsql:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
services:
pgsql:
image: postgres:12
Expand Down Expand Up @@ -61,7 +63,9 @@ jobs:
test-sqlite:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -83,7 +87,9 @@ jobs:
test-unit:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
services:
elasticsearch:
image: elasticsearch:7.5.0
Expand Down Expand Up @@ -141,7 +147,9 @@ jobs:
test-mysql:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
services:
mysql:
image: mysql:8.0
Expand Down Expand Up @@ -186,7 +194,9 @@ jobs:
test-mssql:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
services:
mssql:
image: mcr.microsoft.com/mssql/server:2017-latest
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/pull-docker-dryrun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
regular:
if: needs.files-changed.outputs.docker == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
Expand All @@ -25,7 +27,9 @@ jobs:
rootless:
if: needs.files-changed.outputs.docker == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pull-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
test-e2e:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.frontend == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pull-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ concurrency:

jobs:
label:
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
permissions:
contents: read
pull-requests: write
Expand Down
Loading

0 comments on commit dd4c88b

Please sign in to comment.