Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 7 additions & 17 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ jobs:
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
cache: true
- uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # tag=v0.11.0

- name: Run tests
run: |
make test
devbox run -- make test
release:
Expand All @@ -41,6 +37,8 @@ jobs:
with:
fetch-depth: 0

- uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # tag=v0.11.0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -51,12 +49,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
cache: true

# To be compatible with ENVs in 'make build'. Used in '.goreleaser.yaml'
- name: Get SHA that triggered release
run: |
Expand All @@ -75,15 +67,13 @@ jobs:
- name: Build release manifests
run: |
rm -rf config/release
make manifest-build
devbox run -- make manifest-build
- name: Make release
uses: goreleaser/goreleaser-action@v5
with:
version: v1.17.2
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
goreleaser release

- name: Container metadata
id: meta
Expand Down
19 changes: 2 additions & 17 deletions .github/workflows/chart-lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ jobs:
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.11.2

- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # tag=v0.11.0

- name: Setup Chart Linting
id: lint
Expand Down Expand Up @@ -63,16 +55,9 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'

# Check CRD update

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
cache: true

# Build release manifests and test against chart versions
- name: Check CRD status
run: |
rm -rf config/release
make manifest-build
devbox run -- make manifest-build
diff -q config/release/crds.yaml charts/bifrost-gateway-controller/crds/crds.yaml
25 changes: 5 additions & 20 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,22 @@ jobs:
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
cache: true

- name: Install KIND
uses: helm/kind-action@v1.8.0
with:
install_only: true

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
install-only: true
- uses: jetify-com/devbox-install-action@a03caf5813591bc882139eba6ae947930a83a427 # tag=v0.11.0

- name: Build controller and container
run: |
make build docker-build
devbox run -- make build docker-build
- name: Setup E2E KIND cluster
run: |
make setup-e2e-test-cluster wait-ready-external-dns-test
devbox run -- make setup-e2e-test-cluster wait-ready-external-dns-test
- name: Deploy controller to cluster
run: |
make install cluster-load-controller-image deploy
devbox run -- make install cluster-load-controller-image deploy
# Wait for controller to be ready - this allows for short and concise test timeouts
until kubectl -n bifrost-gateway-controller-system wait pods -lcontrol-plane=controller-manager --for condition=Ready --timeout=120s ; do echo "."; sleep 1; done
- name: Run E2E test suite
run: |
make e2e-test
devbox run -- make e2e-test
2 changes: 1 addition & 1 deletion .github/workflows/pr-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Verify release manifests without changes
run: |
rm -rf config/release
make manifest-build
devbox run -- make manifest-build
git status --porcelain
if [[ -z `git status --porcelain` ]]; then echo "No repo changes"; else echo "Repo have unexpected changes"; exit 1; fi
Expand Down