1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-09-19 20:13:19 +02:00

ci: gh pages

This commit is contained in:
Jozef Steinhübl 2024-03-29 22:50:07 +01:00
parent dc1b7bb489
commit 0b8864904c
2 changed files with 4 additions and 47 deletions

View file

@ -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

View file

@ -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: