-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ashpect/feature
Cache_Updation, seperate tests, clean up scripts, make registry dynamic and a loot of testing
- Loading branch information
Showing
10 changed files
with
150 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ jobs: | |
run: ./test/test.sh rootless | ||
|
||
- name: Test Daemon | ||
run: ./test/test.sh client | ||
run: ./test/test.sh client |
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,38 @@ | ||
name: Build and Test MetaCall Builder for startup flow | ||
# Seperate because the space is limited in the github actions | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "v*.*.*" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# TODO: | ||
# - name: Lint | ||
# run: docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.59.1 golangci-lint run -v --enable-all | ||
|
||
- name: Build | ||
run: docker compose build | ||
|
||
- name: Test Binary | ||
env: | ||
BUILDER_ARGS: "runtime rb" | ||
run: docker compose up --exit-code-from binary binary | ||
|
||
- name: Test Startup-Rootless | ||
run: ./test/test.sh rootless startup | ||
|
||
- name: Test Startup-Daemon | ||
run: ./test/test.sh client startup |
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
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
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
File renamed without changes.
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,20 @@ | ||
#!/bin/sh\n\ | ||
export BUILDKITD_FLAGS=--oci-worker-no-process-sandbox\n\ | ||
|
||
if [ -z "$EXPORT_REGISTRY" ]; then | ||
EXPORT_REGISTRY="registry:5000/metacall/builder_cache" | ||
fi | ||
|
||
if [ -z "$IMPORT_REGISTRY" ]; then | ||
IMPORT_REGISTRY="registry:5000/metacall/builder_startup" | ||
fi | ||
|
||
if [ -z "$BUILDER_BINARY" ]; then | ||
BUILDER_BINARY="/home/user/builder" | ||
fi | ||
|
||
|
||
${BUILDER_BINARY} $@ | buildctl-daemonless.sh build \ | ||
--export-cache type=registry,ref=${EXPORT_REGISTRY},registry.insecure=true \ | ||
--import-cache type=registry,ref=${IMPORT_REGISTRY},registry.insecure=true \ | ||
--output type=image,name=registry:5000/metacall/builder_output,push=true,registry.insecure=true\n'\ |
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