mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-12-22 12:11:06 +01:00
ci: gh pages
This commit is contained in:
parent
d54ce7014a
commit
dc1b7bb489
1 changed files with 43 additions and 0 deletions
43
.github/workflows/docker.yml
vendored
Normal file
43
.github/workflows/docker.yml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
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
|
Loading…
Reference in a new issue