From 0b8864904c57553fe45b9ce5749b43a074e86513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Fri, 29 Mar 2024 22:50:07 +0100 Subject: [PATCH] ci: gh pages --- .github/workflows/docker.yml | 43 ------------------------------------ .github/workflows/pages.yml | 8 +++---- 2 files changed, 4 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index f858207..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Docker Build XBPS container image - -on: - # manually - workflow_dispatch: - -env: - GHCR_IMAGE: "ghcr.io/xhyrom/${{ github.event.repository.name }}" - -jobs: - build: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - config: - - arch: x86_64 - platform: linux/amd64 - permissions: - contents: read - packages: write - steps: - - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Log in to GHCR - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push images - uses: docker/build-push-action@v5 - with: - context: image - platforms: ${{ matrix.config.platform }} - outputs: type=image,name=${{ env.GHCR_IMAGE }}:${{ matrix.config.arch }},push=true diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e6619db..252960d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: env: - GHCR_IMAGE: "ghcr.io/xhyrom/${{ github.event.repository.name }}" + GHCR_IMAGE: "ghcr.io/xhyrom/void-buildroot-glibc" jobs: build: @@ -42,7 +42,7 @@ jobs: docker run --rm \ -v $(pwd):/workspace \ --platform ${{ matrix.config.platform }} \ - ${GHCR_IMAGE}:${{ matrix.config.arch }} \ + ${GHCR_IMAGE}:38478e9@sha256:9e68dfba56d591cacf5593bed267945cb83c805bd15837aee9b3da2697a5bf61 \ /workspace/scripts/create_packages.sh ${{ matrix.config.arch }} ${{ matrix.config.sha256 }} sudo chown -R $(id -u):$(id -g) void-packages/hostdir/binpkgs @@ -55,7 +55,7 @@ jobs: docker run --rm \ -v $(pwd):/workspace \ --platform ${{ matrix.config.platform }} \ - ${GHCR_IMAGE}:${{ matrix.config.arch }} \ + ${GHCR_IMAGE}:38478e9@sha256:9e68dfba56d591cacf5593bed267945cb83c805bd15837aee9b3da2697a5bf61 \ /workspace/scripts/sign_repository.sh "repository-${{ matrix.config.arch }}" "xhyrom" ${{ github.event.pusher.email }} - name: Upload repository as artifacts @@ -71,7 +71,7 @@ jobs: contents: read packages: read container: - image: ghcr.io/xhyrom/${{ github.event.repository.name }}:x86_64 + image: ghcr.io/xhyrom/${{ github.event.repository.name }}:38478e9@sha256:9e68dfba56d591cacf5593bed267945cb83c805bd15837aee9b3da2697a5bf61 steps: - uses: actions/checkout@v4 with: