Skip to content

Commit

Permalink
fix helm project-operator CI
Browse files Browse the repository at this point in the history
ammend build CI to not use dapper

Signed-off-by: Alexandre Lamarre <[email protected]>
  • Loading branch information
alexandreLamarre committed Mar 27, 2024
1 parent 36a07a3 commit 846f103
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 18 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/e2e-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
env:
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '^1.18'
SETUP_GO_VERSION: '^1.22'
YQ_VERSION: v4.25.1
E2E_CI: true
REPO: rancher
Expand All @@ -48,7 +48,7 @@ jobs:
matrix:
k3s_version:
# k3d version list k3s | sed 's/+/-/' | sort -h
- ${{ github.event.inputs.k3s_version || 'v1.20.15-k3s1' }}
- ${{ github.event.inputs.k3s_version || 'v1.27.4+k3s1' }}
steps:
-
uses: actions/checkout@v3
Expand All @@ -58,6 +58,11 @@ jobs:
name: Install mikefarah/yq
run: |
sudo wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq && sudo chmod +x /usr/bin/yq;
-
name: setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
-
name: Perform CI
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e/scripts/create-project-namespace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source $(dirname $0)/entry
cd $(dirname $0)/../../../..

kubectl create namespace e2e-hpo || true
kubectl label namespace e2e-hpo field.cattle.io/projectId=p-example --overwrite
kubectl label namespace e2e-hpo field.cattle.io/projectId:e2e-ci-helm-project-operator:p-example --overwrite
sleep "${DEFAULT_SLEEP_TIMEOUT_SECONDS}"
if ! kubectl get namespace cattle-project-p-example; then
echo "ERROR: Expected cattle-project-p-example namespace to exist after ${DEFAULT_SLEEP_TIMEOUT_SECONDS} seconds, not found"
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: rancher/dapper:v0.5.4
steps:
- uses: actions/checkout@v1
- name: Run CI
run: dapper ci
-
name : setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
uses: actions/checkout@v1
-
name: Run CI
run: make ci
13 changes: 3 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
TARGETS := $(shell ls scripts)

.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-$$(uname -s)-$$(uname -m) > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper

$(TARGETS): .dapper
./.dapper $@
$(TARGETS):
./scripts/$@

.DEFAULT_GOAL := default

.PHONY: $(TARGETS)
.PHONY: $(TARGETS)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 846f103

Please sign in to comment.