Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/contributors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ users:
hemang1404:
name: Hemang Sharrma
email: hemangsharrma@gmail.com
jiwahn:
ilp-sys:
name: Jiwoo Ahn
email: ikwydls1314@gmail.com
goyalpalak18:
Expand Down Expand Up @@ -86,12 +86,3 @@ users:
kaizakin:
name: Karthik Balasubramanian
email: karthikbalasubramanian08@gmail.com
MUFFANUJ:
name: Anuj Kumar Singh
email: anujsinghhero292@gmail.com
neo-0007:
name: Hrishikesh Gohain
email: hrishikeshgohain123@gmail.com
rishi-jat:
name: Rishi Jat
email: rishijat098@gmail.com
10 changes: 0 additions & 10 deletions .github/linters/urunc-dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ TUNTAP
Timestamping
Tmpfs
Tuntap
TTRPC
UNBINDABLE
URUNC
Unikernel
Expand Down Expand Up @@ -128,11 +127,8 @@ clis
cmainas
cmdline
cntr
containerdshim
containerd
containerd's
containersapi
contentapi
cpio
creack
crictl
Expand All @@ -154,7 +150,6 @@ elevateprivileges
elfloader
endmacro
epoll
errdefs
etest
etesting
etfs
Expand Down Expand Up @@ -182,7 +177,6 @@ httpreply
iface
ifaces
ifname
imagesapi
initpipe
initrds
inlinehilite
Expand All @@ -204,7 +198,6 @@ kwds
lazytime
lenag
lenpg
leasesapi
levarage
libc
libcontainer
Expand Down Expand Up @@ -303,10 +296,8 @@ setgroup
settime
sgid
sharedfs
snapshotsapi
sigaction
sigreturn
sigstr
sirupsen
socker
stretchr
Expand All @@ -326,7 +317,6 @@ tmpl
tomlq
traefik
triger
ttrpc
twemoji
uidmap
ukernel
Expand Down
43 changes: 28 additions & 15 deletions .github/workflows/add-git-trailers.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
name: Add Git Trailers to PR commits

on:
pull_request_review:
types: [submitted]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
workflow_call:
secrets:
GIT_CLONE_PAT:
required: false
URUNC_BOT_PRIVATE_KEY:
required: true

permissions:
contents: read

jobs:
git-trailers:
name: Add Git Trailers
if: >-
github.event.pull_request.base.ref == 'main' &&
github.event.review.state == 'approved'
runs-on: ubuntu-22.04
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- arch: amd64
runner: ubuntu-22.04
continue-on-error: true
permissions:
contents: write
pull-requests: write
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
Expand All @@ -36,23 +40,32 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Append git trailers
uses: nubificus/git-trailers@8e08c91bb4c1fd9cb1ccbd9cc8029c31acf8da66 # feat_use_rebase
with:
user_info: .github/contributors.yaml

- name: Generate urunc-bot token
id: generate-token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
with:
app-id: ${{ vars.URUNC_BOT_APP_ID }}
private-key: ${{ secrets.URUNC_BOT_PRIVATE_KEY }}

- name: Set up Git
run: |
git config --global user.name "urunc-bot[bot]"
git config --global user.email "urunc-bot[bot]@users.noreply.github.com"

- name: Append git trailers
uses: nubificus/git-trailers@1d1595aacfd9239ae69d773cb895606daa17e538
uses: nubificus/git-trailers@18fd322f3fbfd505b4de728974a4ac1f32f758a7 # feat_auto_merge
with:
token: ${{ steps.generate-token.outputs.token }}
user-info: .github/contributors.yaml
user_info: .github/contributors.yaml

- name: Merge PR
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
sleep 5 # Wait for github to get updated with the push. Otherwise merge will fail
PR_URL=${{ github.event.pull_request.html_url }}

gh pr merge "$PR_URL" --rebase --admin
4 changes: 2 additions & 2 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051
with:
images: ${{ env.IMAGE_NAME }}
tags: |
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:

- name: Build and push urunc-deploy-${{ matrix.arch}}
id: build-and-push
uses: docker/build-push-action@789f68658055d3ca993799b232b5c46dfe3f114d # master
uses: docker/build-push-action@9e436ba9f2d7bcd1d038c8e55d039d37896ddc5d # master
with:
context: ./deployment/urunc-deploy
tags: ${{ steps.meta.outputs.tags }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci_on_push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: urunc CI

on:
push:
branches: ["chore/issue-208-e2e-multi-distro"]
pull_request:
branches: ["main"]
types: [opened,synchronize,reopened,labeled]
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: urunc CI Test

on:
push:
branches: ["chore/issue-208-e2e-multi-distro"]

jobs:
ci-test:
permissions:
contents: read
packages: write
id-token: write
attestations: write
pull-requests: read
uses: ./.github/workflows/ci.yml
with:
ref: ${{ github.sha }}
skip-build: "no"
skip-lint: "no"
secrets: inherit
21 changes: 10 additions & 11 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,29 @@ on:
pull_request_target:
types:
- closed
branches:
- 'main-pr*'

permissions:
contents: read

jobs:
add-trailers-and-merge:
if: |
github.event.pull_request.merged == true
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.base.ref, 'main-pr')
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit

- name: Exit if PR is not rebaseable
if: ${{ github.event.pull_request.rebaseable != null && github.event.pull_request.rebaseable == false }}
run: exit 1
- name: Set up Git
run: |
git config --global user.name "urunc-bot[bot]"
git config --global user.email "urunc-bot[bot]@users.noreply.github.com"

- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -41,18 +42,16 @@ jobs:
private-key: ${{ secrets.URUNC_BOT_PRIVATE_KEY }}

- name: Append git trailers
uses: nubificus/git-trailers@1d1595aacfd9239ae69d773cb895606daa17e538
uses: nubificus/git-trailers@18fd322f3fbfd505b4de728974a4ac1f32f758a7 # feat_auto_merge
with:
token: ${{ steps.generate-token.outputs.token }}
user-info: .github/contributors.yaml
user_info: .github/contributors.yaml

- name: Create a Pull Request from PR_BRANCH to main and merge it
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
PR_BRANCH: ${{ github.event.pull_request.base.ref }}
run: |
PR_BRANCH=${{ github.event.pull_request.base.ref }}

# Create the pull request
PR_URL=$(gh pr create \
--head "$PR_BRANCH" \
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/pr-trailers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Add Git Trailers to PR commits

on:
pull_request_review:
types: [submitted]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
git-trailers:
name: Add Git Trailers to PR commits
if: ${{ github.event.pull_request.base.ref == 'main' && github.event.review.state == 'approved' }}
uses: ./.github/workflows/add-git-trailers.yml
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT

- name: Create initial release
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
id: create_release
with:
files: |
Expand Down
Loading