jupyter/.forgejo/workflows/build-images.yml
Maciej Lebiest 6e34209fb0
All checks were successful
Build images / build-images-amd64 (push) Successful in 10m22s
Build images / build-images-arm64 (push) Successful in 19m1s
Build images / update-images-manifests (push) Successful in 15s
Set master branch name in pipeline
2024-04-14 20:18:41 +02:00

49 lines
1.9 KiB
YAML

name: Build images
run-name: Build images
on:
push:
branches: [ "master" ]
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;