Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test commit for PR build testing #1

Open
wants to merge 3 commits into
base: eve-kernel-amd64-v6.1.38-generic
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
25 changes: 12 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
name: eve-kernel build

on:
workflow_dispatch:
pull_request_review:
types: [submitted]
pull_request:
types: [opened, synchronize, closed]
types: [ submitted ]
push:
branches:
- "eve-kernel-amd64-v6.1.38-generic"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
packages:
runs-on: self-hosted
if: ${{ github.event.review.state == 'approved' || github.ref == 'refs/heads/eve-kernel-amd64-v6.1.38-generic' }}
steps:
- name: Get eve-kernel
uses: actions/checkout@v3
with:
ref: "eve-kernel-amd64-v6.1.38-generic"
- name: Always build eve-kernel-amd64

- name: Build eve-kernel-amd64
run: |
make -f Makefile.eve BRANCH?=${GITHUB_REF##*/} kernel-gcc

- name: Log in to Docker Hub
if: ( github.event_name == 'pull_request' && github.event.pull_request.merged == true ) || github.event_name == 'push' # Only if PR is merged or it was direct push
uses: docker/login-action@v3
with:
username: ${{ secrets.RELEASE_DOCKERHUB_ACCOUNT }}
password: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }}
- name: Login to DockerHUB
if: ( github.event_name == 'pull_request' && github.event.pull_request.merged == true ) || github.event_name == 'push' # Only if PR is merged or it was direct push
run: |
echo "${{ secrets.RELEASE_DOCKERHUB_TOKEN }}" |\
docker login -u "${{ secrets.RELEASE_DOCKERHUB_ACCOUNT }}" --password-stdin

- name: Push eve-kernel-amd64-v6.1.38-generic if PR approved or pushed
if: ( github.event_name == 'pull_request' && github.event.pull_request.merged == true ) || github.event_name == 'push' # Only if PR is merged or it was direct push
if: github.ref == 'refs/heads/eve-kernel-amd64-v6.1.38-generic'
run: |
make -f Makefile.eve BRANCH?=${GITHUB_REF##*/} push-gcc
make -f Makefile.eve BRANCH?=${GITHUB_REF##*/} push-gcc
2 changes: 1 addition & 1 deletion Makefile.eve
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ kernel-%: Dockerfile.%
docker-tag-%:
@echo "docker.io/lfedge/eve-kernel:$(BRANCH)-$(VERSION)$(DIRTY)-$*"

push-%: kernel-%
push-%:
$(if $(DIRTY), $(error "Not pushing since the repo is dirty"))
docker push lfedge/eve-kernel:$(BRANCH)-$(VERSION)-$*
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Linux kernel
Linux kernel instructions
============

There are several guides for kernel developers and users. These guides can
Expand Down
Loading