22 lines
1.1 KiB
YAML
22 lines
1.1 KiB
YAML
steps:
|
|
build:
|
|
image: almalinux:9
|
|
commands:
|
|
- dnf -y install dnf-plugin-config-manager
|
|
- dnf config-manager --set-enabled crb
|
|
- dnf -y install epel-release buildah
|
|
- echo 'unqualified-search-registries = ["docker.io"]' > /etc/containers/registries.conf
|
|
- export microcontainer=$(buildah from almalinux/9-micro)
|
|
- export micromount=$(buildah mount $microcontainer)
|
|
- dnf install --installroot $micromount --releasever 9 --setopt install_weak_deps=false --nodocs -y nodejs git-tools
|
|
- dnf clean all --installroot $micromount
|
|
- wget https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-linux-amd64.tar.gz
|
|
- tar xvf pandoc-3.1.9-linux-amd64.tar.gz
|
|
- cp pandoc-3.1.9/bin/pandoc $micromount/usr/bin/
|
|
- buildah unmount $microcontainer
|
|
- buildah commit $microcontainer git.zhaozuohong.vip/zhao/node-pandoc
|
|
- buildah login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD git.zhaozuohong.vip
|
|
- buildah push git.zhaozuohong.vip/zhao/node-pandoc
|
|
secrets:
|
|
- registry_username
|
|
- registry_password
|