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;