Khulnasoft (#4)
* Update CODEOWNERS Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com> * Update go.yaml Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com> * Update go.yaml Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com> * Update go.yaml Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com> --------- Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com>
This commit is contained in:
parent
fb9b96bf75
commit
7de99be313
|
|
@ -17,6 +17,7 @@ on:
|
|||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
concurrency:
|
||||
# This will make sure we only apply the concurrency limits on pull requests
|
||||
|
|
@ -86,3 +87,44 @@ jobs:
|
|||
- name: Run go tests
|
||||
run: |
|
||||
go test -short `go list ./... | grep -v ./test_e2e_arc`
|
||||
|
||||
build:
|
||||
needs: [fmt, lint, generate, test]
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REGISTRY_IMAGE: ghcr.io/khulnasoft/actions-runner-controller
|
||||
BUILD_PLATFORM: linux/amd64
|
||||
BUILD_VERSION: ${{ github.event_name != 'pull_request' && 'master' || 'branch' }}-${{ github.sha }}
|
||||
steps:
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: ghcr.io
|
||||
|
||||
- uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
image: tonistiigi/binfmt:latest
|
||||
platforms: ${{ env.BUILD_PLATFORM }}
|
||||
|
||||
- id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY_IMAGE }}
|
||||
|
||||
- uses: docker/build-push-action@v5
|
||||
id: build
|
||||
with:
|
||||
build-args: |
|
||||
VERSION=${{ env.BUILD_VERSION }}
|
||||
TARGETPLATFORM=${{ env.BUILD_PLATFORM }}
|
||||
cache-from: |
|
||||
type=gha,scope=${{ github.event.repository.default_branch }}
|
||||
type=gha,scope=${{ github.ref_name }}
|
||||
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}
|
||||
platforms: ${{ env.BUILD_PLATFORM }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY_IMAGE }}:${{ env.BUILD_VERSION }}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
# actions-runner-controller maintainers
|
||||
* @mumoshu @toast-gear @actions/actions-launch @nikola-jokic @rentziass
|
||||
# actions-runner-controller internal maintainers
|
||||
* @khulnasoft/devops
|
||||
|
|
|
|||
Loading…
Reference in New Issue