Initial commit
This commit is contained in:
commit
20c778f7c6
4 changed files with 792 additions and 0 deletions
49
.forgejo/workflows/build-images.yml
Normal file
49
.forgejo/workflows/build-images.yml
Normal file
|
@ -0,0 +1,49 @@
|
|||
name: Build images
|
||||
run-name: Build images
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
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;
|
Loading…
Add table
Add a link
Reference in a new issue