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

50 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2024-04-14 18:16:09 +00:00
name: Build images
run-name: Build images
on:
push:
2024-04-14 18:18:41 +00:00
branches: [ "master" ]
2024-04-14 18:16:09 +00:00
schedule:
- cron: '10 5 */10 * *'
jobs:
build-images-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
- name: Build selected images
run: |
podman build --ulimit nofile=10240:10240 ./ --tag forgejo.maciej.cloud/pkg/jupyter:arm64;
podman push forgejo.maciej.cloud/pkg/jupyter:arm64;
build-images-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
- name: Build selected images
run: |
podman build --ulimit nofile=10240:10240 ./ --tag forgejo.maciej.cloud/pkg/jupyter:amd64;
podman push forgejo.maciej.cloud/pkg/jupyter:amd64;
update-images-manifests:
runs-on: [ amd64 ]
needs:
- build-images-amd64
- build-images-arm64
steps:
- name: login to registry
run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" forgejo.maciej.cloud
- name: Create manifests and push
run: |
podman manifest create forgejo.maciej.cloud/pkg/jupyter:latest forgejo.maciej.cloud/pkg/jupyter:amd64 forgejo.maciej.cloud/pkg/jupyter:arm64;
podman manifest push forgejo.maciej.cloud/pkg/jupyter:latest forgejo.maciej.cloud/pkg/jupyter:latest;