Skip to content

Commit

Permalink
chore: test gh actions
Browse files Browse the repository at this point in the history
test gh actions

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Aug 31, 2023
1 parent 3ac3c92 commit c20fd6f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 29 deletions.
7 changes: 6 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-08-31T17:59:55Z by kres d3c3205-dirty.
# Generated on 2023-08-31T18:04:39Z by kres eb1db7d.

kind: pipeline
type: kubernetes
Expand Down Expand Up @@ -184,6 +184,8 @@ services:
- --log-level=error
privileged: true
volumes:
- name: dev
path: /dev
- name: outer-docker-socket
path: /var/outer-run
- name: docker-socket
Expand All @@ -206,6 +208,9 @@ volumes:
- name: ssh
temp:
medium: memory
- name: dev
host:
path: /dev

trigger:
branch:
Expand Down
11 changes: 11 additions & 0 deletions .github/buildkitd.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[worker.oci]
gc = true
gckeepstorage = 100000 # 100 GiB

[[worker.oci.gcpolicy]]
keepBytes = 32212254720 # 30 GiB
keepDuration = 604800
filters = [ "type==source.local", "type==exec.cachemount", "type==source.git.checkout"]
[[worker.oci.gcpolicy]]
all = true
keepBytes = 107374182400 # 100 GiB
54 changes: 26 additions & 28 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
name: default
on:
pull_request:
branches:
- main
push:
branches:
- main
- main
jobs:
setup-ci:
base:
runs-on: self-hosted
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
base:
needs: setup-ci
runs-on: self-hosted
steps:
with:
driver: remote
config: .github/buildkitd.toml
endpoint: tcp://docker-amd64.ci.svc:2376
append:
- endpoint: tcp://docker-arm64.ci.svc:2376
platform: linux/arm64
- name: base
run: |
make base
Expand All @@ -41,46 +40,45 @@ jobs:
needs: [unit-tests, unit-tests-race]
runs-on: self-hosted
env:
CODECOV_TOKEN: $" secrets.CODECOV_TOKEN "
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: coverage
run: |
make coverage
kres:
:
needs: base
runs-on: self-hosted
steps:
- name: kres
- name:
run: |
make kres
make
lint:
needs: base
runs-on: self-hosted
steps:
- name: lint
run: |
make lint
image-kres:
needs: [kres, lint, unit-tests, unit-tests-race]
image-:
needs: [, lint, unit-tests, unit-tests-race]
runs-on: self-hosted
steps:
- name: image-kres
- name: image-
run: |
make image-kres
push-kres:
metadata:
permissions:
packages: write
needs: image-kres
make image-
push-:
permissions:
packages: write
needs: image-
runs-on: self-hosted
if: $" github.event_name != 'pull_request' "
if: ${{ github.event_name != &#39;pull_request&#39; }}
steps:
- name: Login to GHCR
uses: docker/[email protected]
with:
registry: ghcr.io
username: $" github.repository_owner "
password: $" secrets.GITHUB_TOKEN "
- name: push-kres
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: push-
run: |
make push-kres
make push-

0 comments on commit c20fd6f

Please sign in to comment.