mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-11-10 00:48:06 +01:00
ci: gh pages
This commit is contained in:
parent
dc1b7bb489
commit
0b8864904c
2 changed files with 4 additions and 47 deletions
43
.github/workflows/docker.yml
vendored
43
.github/workflows/docker.yml
vendored
|
@ -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
|
|
8
.github/workflows/pages.yml
vendored
8
.github/workflows/pages.yml
vendored
|
@ -6,7 +6,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GHCR_IMAGE: "ghcr.io/xhyrom/${{ github.event.repository.name }}"
|
GHCR_IMAGE: "ghcr.io/xhyrom/void-buildroot-glibc"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -42,7 +42,7 @@ jobs:
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v $(pwd):/workspace \
|
-v $(pwd):/workspace \
|
||||||
--platform ${{ matrix.config.platform }} \
|
--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 }}
|
/workspace/scripts/create_packages.sh ${{ matrix.config.arch }} ${{ matrix.config.sha256 }}
|
||||||
|
|
||||||
sudo chown -R $(id -u):$(id -g) void-packages/hostdir/binpkgs
|
sudo chown -R $(id -u):$(id -g) void-packages/hostdir/binpkgs
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v $(pwd):/workspace \
|
-v $(pwd):/workspace \
|
||||||
--platform ${{ matrix.config.platform }} \
|
--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 }}
|
/workspace/scripts/sign_repository.sh "repository-${{ matrix.config.arch }}" "xhyrom" ${{ github.event.pusher.email }}
|
||||||
|
|
||||||
- name: Upload repository as artifacts
|
- name: Upload repository as artifacts
|
||||||
|
@ -71,7 +71,7 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
packages: read
|
packages: read
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/xhyrom/${{ github.event.repository.name }}:x86_64
|
image: ghcr.io/xhyrom/${{ github.event.repository.name }}:38478e9@sha256:9e68dfba56d591cacf5593bed267945cb83c805bd15837aee9b3da2697a5bf61
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue