Skip to content

more/new docker images #35

more/new docker images

more/new docker images #35

Workflow file for this run

name: ci·docker
on:
pull_request:
paths:
- docker/Dockerfile.*
- .github/workflows/ci.docker.yml
concurrency:
group: ci/docker/${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
jobs:
build-pkgx:
runs-on: ubuntu-latest
container: debian:buster-slim
steps:
- uses: actions/checkout@v4
- run: apt-get update && apt-get install -y curl gcc perl make
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: products
path: ./target/release/pkgx
build-docker:
runs-on: ubuntu-latest
needs: build-pkgx
strategy:
matrix:
variety:
- archlinux
- busybox
- debian
- ubuntu
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: products
- run: |
mkdir products
mv ./pkgx products/$(uname -m)
curl https://pkgxdev.github.io/pkgm/pkgm.ts -o products/pkgm
- run:
docker build
--tag pkgxdev/${{ matrix.variety }}
--file .github/Dockerfile.${{ matrix.variety }}
.
- run: |
cat <<EoD> Dockerfile
FROM pkgxdev/${{ matrix.variety }}
RUN pkgx --version
RUN if git --version; then exit 1; fi
RUN pkgx git --version
RUN pkgm install git
RUN if ! git --version; then exit 2; fi
EoD
docker build --file Dockerfile .