From f385158649feb19cbe27ce72caf610464b9182f9 Mon Sep 17 00:00:00 2001 From: Martyn Date: Fri, 8 Mar 2024 14:34:15 +0000 Subject: [PATCH] Update .forgejo/workflows/demo.yaml --- .forgejo/workflows/demo.yaml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 70ad25d..5fc6248 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -3,6 +3,24 @@ jobs: test: runs-on: docker steps: - - run: curl -fSL "https://github.com/genuinetools/img/releases/download/v0.5.11/img-linux-amd64" -o "/usr/local/bin/img" && chmod a+x "/usr/local/bin/img" - - uses: actions/checkout@v4 - - run: img build . -t imartyn/usb-ipp:latest + - name: Checkout + uses: actions/checkout@v4 + - 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=act-runner + qemu.install=false + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: false + platforms: linux/amd64 + tags: | + imartyn/usb-ipp:latest \ No newline at end of file