Skip to content

feat(resize-partition): support for jessie & old-old ubuntu #7

feat(resize-partition): support for jessie & old-old ubuntu

feat(resize-partition): support for jessie & old-old ubuntu #7

Workflow file for this run

name: pack parted & sfdisk
# auto-task.start-build-time = ?
on:
# schedule:
# - cron: '30 20 20 */2 *'
push:
# branches: ["build"]
paths:
- .github/workflows/pack-parted.yml
- assets/parted/Dockerfile
jobs:
build:
strategy:
fail-fast: false
matrix:
# builder: ["alpine:edge"]
# arch: [
# "x64", "x86",
# "s390x", "ppc64le", "armv7a", "arm64"]
include:

Check failure on line 23 in .github/workflows/pack-parted.yml

View workflow run for this annotation

GitHub Actions / pack parted & sfdisk

Invalid workflow file

The workflow is not valid. .github/workflows/pack-parted.yml (Line: 23, Col: 17): Unexpected value ''
# - arch: x64
# oci_arch: amd64
# - arch: x86
# oci_arch: 386
# - arch: s390x
# oci_arch: s390x
# - arch: ppc64le
# oci_arch: ppc64le
# - arch: armv7a
# oci_arch: arm/v7
# - arch: arm64
# oci_arch: arm64
# - arch: mipsle
# oci_arch: mipsle
# builder: "ghcr.io/2cd/debian:bookworm-mipsle"
# - arch: mipsbe
# oci_arch: mips
# builder: "ghcr.io/2cd/debian:buster-mipsbe"
runs-on: ubuntu-latest
defaults:
run:
shell: zsh --pipefail -fex {0}
env:
DOCKER_DIR: assets/parted
non_x86: ${{ !contains(fromJSON('["x64", "x86"]'), matrix.arch) }}
steps:
- name: install zsh
shell: sh -e {0}
run: ${{ vars.INSTALL_ZSH }}
- name: install qemu-user
if: fromJson(env.non_x86)
run: |
sudo apt update
sudo apt install -y qemu-user-static
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
ref: build
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{env.DOCKER_DIR}}
push: true
platforms: linux/${{matrix.oci_arch}}
tags: ghcr.io/2cd/pkgs:parted-${{matrix.arch}}
build-args: |
TMM_ARCH=${{matrix.arch}}
BUILDER=${{matrix.builder}}