diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index a47b8f5..bed0b11 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -5,7 +5,7 @@ on: branches: - 'main' jobs: - test: + fatssh: runs-on: docker container: catthehacker/ubuntu:act-latest steps: @@ -32,4 +32,35 @@ jobs: uses: docker/build-push-action@v5 with: push: true + file: Dockerfile.fat-ssh tags: git.martyn.berlin/martyn/fat-ssh:latest + macless-haystack-web: + runs-on: docker + container: catthehacker/ubuntu:act-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Create Kubeconfig + run: | + mkdir $HOME/.kube + echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + driver: kubernetes + driver-opts: | + namespace=git + qemu.install=false + - name: Login to forgejo + uses: docker/login-action@v3 + with: + registry: git.martyn.berlin + username: martyn + password: ${{ secrets.PUSH_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + file: Dockerfile.macless-haystack-web + tags: git.martyn.berlin/martyn/macless-haystack-web:latest + diff --git a/Dockerfile b/Dockerfile.fat-ssh similarity index 100% rename from Dockerfile rename to Dockerfile.fat-ssh diff --git a/Dockerfile.macless-haystack-web b/Dockerfile.macless-haystack-web new file mode 100644 index 0000000..e82e316 --- /dev/null +++ b/Dockerfile.macless-haystack-web @@ -0,0 +1,6 @@ +FROM nginx AS builder +RUN apt update && apt install unzip +RUN curl https://github.com/dchristl/macless-haystack/releases/download/v2.2.0/webapplication.zip -o /tmp/webapplication.zip && cd /usr/share/nginx/ && unzip /tmp/webapplication.zip + +FROM nginx +COPY --from=builder /usr/share/nginx /usr/share/nginx