nvim/.forgejo/workflows/build-images.yml
Maciej Lebiest 83ccf3251a
Some checks failed
Build neovim image / build-neovim-arm64 (push) Failing after 8m3s
Build neovim image / build-neovim-amd64 (push) Successful in 9m9s
Build neovim image / update-images-manifest (push) Has been skipped
fix logging into registry
2024-05-03 12:44:35 +02:00

56 lines
1.7 KiB
YAML

name: Build neovim image
run-name: Build Neovim image yay
on:
push:
branches: [ "main" ]
schedule:
- cron: '30 3 */10 * *'
env:
IMAGE: forgejo.maciej.cloud/pkg/neovim
jobs:
build-neovim-arm64:
runs-on: arm64
steps:
- name: install actions deps
run: |
dnf install -y nodejs git
- name: Check out repository code
uses: actions/checkout@v3
- name: login to registry
run: |
podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" forgejo.maciej.cloud
- run: |
podman build --ulimit nofile=10240:10240 . --tag $IMAGE:arm64
- name: Push image
run: |
podman push $IMAGE:arm64
build-neovim-amd64:
runs-on: amd64
steps:
- name: install actions deps
run: |
dnf install -y nodejs git
- name: Check out repository code
uses: actions/checkout@v3
- name: login to registry
run: |
podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" forgejo.maciej.cloud
- run: |
podman build --ulimit nofile=10240:10240 . --tag $IMAGE:amd64
- name: Push image
run: |
podman push $IMAGE:amd64
update-images-manifest:
runs-on: [ amd64 ]
needs:
- build-neovim-arm64
- build-neovim-amd64
steps:
- name: login to registry
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" forgejo.maciej.cloud
- name: Create manifest and push
run: |
echo "Updating manifest for neovim";
podman manifest create $IMAGE:latest $IMAGE:amd64 $IMAGE:arm64;
podman manifest push $IMAGE:latest $IMAGE:latest;