Skip to content

Commit

Permalink
Use local docker image repo
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Jul 19, 2024
1 parent 21fb3e2 commit 83d7a73
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/ci_config/k3d-local-image-repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# See:
# - https://github.com/k3d-io/k3d/issues/19#issuecomment-1967513596
# - https://github.com/ligfx/k3d-registry-dockerd
apiVersion: k3d.io/v1alpha5
kind: Simple
registries:
create:
image: ligfx/k3d-registry-dockerd:v0.4
proxy:
remoteURL: "*"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
9 changes: 5 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- uses: nolar/setup-k3d-k3s@v1
with:
version: ${{ matrix.K3S_VERSION }}
k3d-args: --k3s-arg --disable=traefik@server:0 --k3s-arg --disable-helm-controller@server:0
k3d-args: --k3s-arg --disable=traefik@server:0 --k3s-arg --disable-helm-controller@server:0 --config .github/ci_config/k3d-local-image-repo.yaml
k3d-name: ${{ matrix.KUBECTL_VERSION }}

- run: kubectl version
Expand All @@ -70,13 +70,14 @@ jobs:
env:
FIREBASE_ADMINSDK_JSON: ${{ secrets.FIREBASE_ADMINSDK_JSON }}
run: |
# echo "kubeconfig:"
# cat ~/.kube/config
kubectl get pods --all-namespaces
helmfile sync --concurrency 1
- name: Destroy cluster
run: k3d cluster delete k3d-${{ matrix.KUBECTL_VERSION }}
if: always()
run: |
k3d cluster delete ${{ matrix.KUBECTL_VERSION }}
k3d cluster delete k3d-${{ matrix.KUBECTL_VERSION }}
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Manually triggered tmate session
Expand Down

0 comments on commit 83d7a73

Please sign in to comment.