From 7523dce0be37a7fab959297234128f52a9e86349 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 17 Feb 2025 10:12:40 +0100 Subject: [PATCH] Build invent-registry.kde.org/sysadmin/ci-images/sles15-craft wit the root user Github actions require to run as root --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ appimage/Dockerfile | 3 +++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 appimage/Dockerfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..bf4bb3e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Craft Linux Docker + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest + permissions: + packages: write + steps: + - + name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and push + uses: docker/build-push-action@v6 + with: + context: "{{defaultContext}}:appimage" + push: true + tags: ghcr.io/opencloud-eu/ci-docker-desktop/appimage:latest diff --git a/appimage/Dockerfile b/appimage/Dockerfile new file mode 100644 index 0000000..5d870c4 --- /dev/null +++ b/appimage/Dockerfile @@ -0,0 +1,3 @@ +FROM invent-registry.kde.org/sysadmin/ci-images/sles15-craft:latest + +USER root