Try removing .git
exception
#1166
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
name: MinKinD Bundle E2Es | |
on: | |
pull_request: | |
branches: [ master ] | |
# schedule: | |
# - cron: '0 */3 * * *' | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./src/github.com/mattmoor/mink | |
jobs: | |
cli-tests: | |
name: e2e tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false # Keep running if one leg fails. | |
matrix: | |
k8s-version: | |
- v1.22.x | |
env: | |
GOPATH: ${{ github.workspace }} | |
GO111MODULE: on | |
GOFLAGS: -ldflags=-s -ldflags=-w -mod=vendor -tags=nostackdriver | |
GGCR_EXPERIMENT_ESTARGZ: "1" | |
KO_DOCKER_REPO: registry.local:5000/knative | |
GATEWAY_OVERRIDE: kourier | |
GATEWAY_NAMESPACE_OVERRIDE: mink-system | |
SYSTEM_NAMESPACE: mink-system | |
ARTIFACTS: ${{ github.workspace }}/artifacts | |
steps: | |
- name: Set up Go 1.17.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.x | |
- name: Install Dependencies | |
working-directory: ./ | |
run: | | |
echo '::group:: install ko' | |
curl -L https://github.com/google/ko/releases/download/v0.8.3/ko_0.8.3_Linux_x86_64.tar.gz | tar xzf - ko | |
chmod +x ./ko | |
sudo mv ko /usr/local/bin | |
echo '::endgroup::' | |
- name: Check out mink | |
uses: actions/checkout@v3 | |
with: | |
path: ./src/github.com/mattmoor/mink | |
- name: Setup Cluster | |
working-directory: ./src/github.com/mattmoor/mink | |
run: | | |
./hack/setup-kind.sh \ | |
--registry-url $(echo ${KO_DOCKER_REPO} | cut -d'/' -f 1) \ | |
--cluster-suffix c${{ github.run_id }}.local \ | |
--nodes 3 \ | |
--k8s-version ${{ matrix.k8s-version }} | |
- name: Install mink core | |
run: | | |
./hack/build.sh | |
# Use mink to install things. | |
mink install --replicas=3 | |
cat > $HOME/.mink.yaml <<EOF | |
# Bundle source context to here by default! | |
bundle: ${KO_DOCKER_REPO}/bundle:latest | |
EOF | |
- name: Git bundle mink-apply-nodejs | |
run: | | |
BEFORE_DIGEST=$(mink bundle --git-url=https://github.com/mattmoor/mink-apply-nodejs --git-ref=refs/heads/main) | |
echo BEFORE_DIGEST=${BEFORE_DIGEST} >> $GITHUB_ENV | |
- name: Check out mink-apply-nodejs | |
uses: actions/checkout@v3 | |
with: | |
repository: mattmoor/mink-apply-nodejs | |
path: ./src/github.com/mattmoor/mink-apply-nodejs | |
- name: Kontext bundle mink-apply-nodejs | |
working-directory: ./src/github.com/mattmoor/mink-apply-nodejs | |
run: | | |
AFTER_DIGEST=$(mink bundle) | |
if [[ "${BEFORE_DIGEST}" != "${AFTER_DIGEST}" ]]; then | |
echo "Git: ${BEFORE_DIGEST}, Kontext: ${AFTER_DIGEST}" | |
exit 1 | |
fi | |
- uses: chainguard-dev/actions/kind-diag@main | |
if: ${{ failure() }} |