diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..311f1be --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,29 @@ +name: ci + +on: + push: + branches: + - "main" + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ github.repository_owner }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ github.repository }}:24.04-standard-amd64-generic-v3.1.3-k3sv1.31.0-k3s1 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3f17a4d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM quay.io/kairos/ubuntu:24.04-standard-amd64-generic-v3.1.3-k3sv1.31.0-k3s1 +WORKDIR /var/lib/rancher/k3s/server/manifests/ +RUN curl -L -O https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/v1.1.7/manifests/dragonfly-operator.yaml +RUN echo -en "---\napiVersion: v1\nkind: Namespace\nmetadata:\n name: prometheus-operator\n" > prometheus-operator.yaml +RUN curl -L https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.76.2/bundle.yaml | sed -e 's/namespace: default/namespace: prometheus-operator/g' >> prometheus-operator.yaml +RUN curl -L -O https://raw.githubusercontent.com/metallb/metallb-operator/v0.14.2/bin/metallb-operator.yaml +RUN curl -L -O https://github.com/jetstack/cert-manager/releases/download/v1.15.3/cert-manager.yaml