nvim/.forgejo/workflows/build-images.yml

57 lines
1.7 KiB
YAML
Raw Normal View History

2023-11-19 11:57:30 +00:00
name: Build neovim image
run-name: Build Neovim image yay
on:
push:
branches: [ "main" ]
schedule:
2023-12-31 09:47:43 +00:00
- cron: '30 3 */10 * *'
2023-11-19 11:57:30 +00:00
2024-04-17 16:27:41 +00:00
env:
IMAGE: forgejo.maciej.cloud/pkg/neovim
2023-11-19 11:57:30 +00:00
jobs:
build-neovim-arm64:
2024-02-08 20:58:16 +00:00
runs-on: arm64
2023-11-19 11:57:30 +00:00
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: |
2024-02-08 20:58:16 +00:00
podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" forgejo.maciej.cloud
2024-05-03 10:44:35 +00:00
- run: |
podman build --ulimit nofile=10240:10240 . --tag $IMAGE:arm64
2023-11-19 11:57:30 +00:00
- name: Push image
run: |
2024-04-17 16:27:41 +00:00
podman push $IMAGE:arm64
2023-11-19 11:57:30 +00:00
build-neovim-amd64:
2024-02-08 20:58:16 +00:00
runs-on: amd64
2023-11-19 11:57:30 +00:00
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: |
2024-02-08 20:58:16 +00:00
podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" forgejo.maciej.cloud
2024-05-03 10:44:35 +00:00
- run: |
podman build --ulimit nofile=10240:10240 . --tag $IMAGE:amd64
2023-11-19 11:57:30 +00:00
- name: Push image
run: |
2024-04-17 16:27:41 +00:00
podman push $IMAGE:amd64
2023-11-19 11:57:30 +00:00
update-images-manifest:
2024-02-08 20:58:16 +00:00
runs-on: [ amd64 ]
2023-11-19 11:57:30 +00:00
needs:
- build-neovim-arm64
- build-neovim-amd64
steps:
- name: login to registry
2024-02-08 20:58:16 +00:00
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" forgejo.maciej.cloud
2023-11-19 11:57:30 +00:00
- name: Create manifest and push
run: |
echo "Updating manifest for neovim";
2024-04-17 16:27:41 +00:00
podman manifest create $IMAGE:latest $IMAGE:amd64 $IMAGE:arm64;
podman manifest push $IMAGE:latest $IMAGE:latest;