-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test gh actions Signed-off-by: Noel Georgi <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 != 'pull_request' }} | ||
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- |