-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gaius <[email protected]>
- Loading branch information
Showing
9 changed files
with
99 additions
and
99 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,90 +30,90 @@ jobs: | |
charts-config: test/testdata/charts/config-rs.yaml | ||
skip: "" | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
docker-images: true | ||
swap-storage: true | ||
# - name: Free Disk Space (Ubuntu) | ||
# uses: jlumbroso/free-disk-space@main | ||
# with: | ||
# tool-cache: false | ||
# android: true | ||
# dotnet: true | ||
# haskell: true | ||
# large-packages: true | ||
# docker-images: true | ||
# swap-storage: true | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Get dependencies | ||
run: | | ||
go install github.com/onsi/ginkgo/v2/[email protected] | ||
mkdir -p /tmp/artifact | ||
- name: Setup buildx | ||
uses: docker/setup-buildx-action@v3 | ||
id: buildx | ||
with: | ||
install: true | ||
# - name: Install Go | ||
# uses: actions/setup-go@v5 | ||
# with: | ||
# go-version-file: go.mod | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
# - name: Get dependencies | ||
# run: | | ||
# go install github.com/onsi/ginkgo/v2/[email protected] | ||
# mkdir -p /tmp/artifact | ||
|
||
# - name: Setup buildx | ||
# uses: docker/setup-buildx-action@v3 | ||
# id: buildx | ||
# with: | ||
# install: true | ||
|
||
# - name: Cache Docker layers | ||
# uses: actions/cache@v4 | ||
# with: | ||
# path: /tmp/.buildx-cache | ||
# key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-buildx- | ||
|
||
- name: Pull Rust Client Image | ||
run: | | ||
cd client-rs | ||
# TODO Use the latest tag. | ||
# CLIENT_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
CLIENT_TAG=latest | ||
docker pull dragonflyoss/client:$CLIENT_TAG | ||
docker tag dragonflyoss/client:$CLIENT_TAG dragonflyoss/client:latest | ||
- name: Build Scheduler Image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: build/images/scheduler/Dockerfile | ||
push: false | ||
load: true | ||
tags: dragonflyoss/scheduler:latest | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
||
- name: Build Manager Image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: build/images/manager/Dockerfile | ||
push: false | ||
load: true | ||
tags: dragonflyoss/manager:latest | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
||
- name: Setup Kind | ||
uses: helm/[email protected] | ||
with: | ||
version: ${{ env.KIND_VERSION }} | ||
config: ${{ env.KIND_CONFIG_PATH }} | ||
cluster_name: kind | ||
|
||
- name: Kind load images | ||
run: | | ||
kind load docker-image dragonflyoss/manager:latest | ||
kind load docker-image dragonflyoss/scheduler:latest | ||
kind load docker-image dragonflyoss/client:latest | ||
CLIENT_TAG=$(git describe --tags $(git rev-parse HEAD)) | ||
echo $CLIENT_TAG | ||
# CLIENT_TAG=latest | ||
# docker pull dragonflyoss/client:$CLIENT_TAG | ||
# docker tag dragonflyoss/client:$CLIENT_TAG dragonflyoss/client:latest | ||
# - name: Build Scheduler Image | ||
# uses: docker/build-push-action@v5 | ||
# with: | ||
# context: . | ||
# file: build/images/scheduler/Dockerfile | ||
# push: false | ||
# load: true | ||
# tags: dragonflyoss/scheduler:latest | ||
# cache-from: type=local,src=/tmp/.buildx-cache | ||
# cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
||
# - name: Build Manager Image | ||
# uses: docker/build-push-action@v5 | ||
# with: | ||
# context: . | ||
# file: build/images/manager/Dockerfile | ||
# push: false | ||
# load: true | ||
# tags: dragonflyoss/manager:latest | ||
# cache-from: type=local,src=/tmp/.buildx-cache | ||
# cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
||
# - name: Setup Kind | ||
# uses: helm/[email protected] | ||
# with: | ||
# version: ${{ env.KIND_VERSION }} | ||
# config: ${{ env.KIND_CONFIG_PATH }} | ||
# cluster_name: kind | ||
|
||
# - name: Kind load images | ||
# run: | | ||
# kind load docker-image dragonflyoss/manager:latest | ||
# kind load docker-image dragonflyoss/scheduler:latest | ||
# kind load docker-image dragonflyoss/client:latest | ||
|
||
# TODO Setup dragonfly | ||
# - name: Setup dragonfly | ||
|
@@ -129,22 +129,22 @@ jobs: | |
# --feature-gates=dfget-range=true,dfget-open-range=true,dfget-empty-file=true,dfget-recursive=true | ||
# cat coverprofile.out >> coverage.txt | ||
|
||
- name: Move cache | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.txt | ||
flags: e2etests | ||
|
||
- name: Upload Logs | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: ${{ matrix.module }}-e2e-tests-logs | ||
path: | | ||
/tmp/artifact/**/*.log | ||
# - name: Move cache | ||
# run: | | ||
# rm -rf /tmp/.buildx-cache | ||
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache | ||
|
||
# - name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v4 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# files: ./coverage.txt | ||
# flags: e2etests | ||
|
||
# - name: Upload Logs | ||
# uses: actions/upload-artifact@v4 | ||
# if: always() | ||
# with: | ||
# name: ${{ matrix.module }}-e2e-tests-logs | ||
# path: | | ||
# /tmp/artifact/**/*.log |
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
Submodule client-rs
updated
32 files