2023-12-02 15:11:34 +08:00
|
|
|
steps:
|
2022-08-19 09:17:22 +08:00
|
|
|
build:
|
2023-12-09 22:15:55 +08:00
|
|
|
image: almalinux:9
|
2022-08-19 09:17:22 +08:00
|
|
|
commands:
|
2023-12-09 22:15:55 +08:00
|
|
|
- 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
|
2022-08-19 09:17:22 +08:00
|
|
|
secrets:
|
|
|
|
- registry_username
|
|
|
|
- registry_password
|