This commit is contained in:
		
							parent
							
								
									24ee7c52fb
								
							
						
					
					
						commit
						f471472693
					
				
					 5 changed files with 55 additions and 38 deletions
				
			
		| 
						 | 
				
			
			@ -6,6 +6,7 @@ on:
 | 
			
		|||
    branches: ['master']
 | 
			
		||||
    paths:
 | 
			
		||||
      - "fedora-40/**"
 | 
			
		||||
      - "fedora-40-minimal/**"
 | 
			
		||||
      - "shared/**"
 | 
			
		||||
      - ".forgejo/workflows/build-fedora-40.yml"
 | 
			
		||||
  schedule:
 | 
			
		||||
| 
						 | 
				
			
			@ -22,12 +23,23 @@ jobs:
 | 
			
		|||
        run: 'dnf install -y --setopt install_weak_deps=False nodejs git buildah qemu-user-static qemu-user-binfmt fuse-overlayfs --exclude container-selinux'
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
      - name: Fulfill Package Manager Cache
 | 
			
		||||
        run: dnf makecache -y --releasever 40
 | 
			
		||||
      - name: Build Minimal Images
 | 
			
		||||
        run: |
 | 
			
		||||
          cd fedora-40-minimal && \
 | 
			
		||||
          buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs manifest create code.lightstands.xyz/standcoded/fedora:40-minimal && \
 | 
			
		||||
          buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs build --arch aarch64 \
 | 
			
		||||
            --pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf:O \
 | 
			
		||||
            --manifest code.lightstands.xyz/standcoded/fedora:40-minimal .
 | 
			
		||||
        env:
 | 
			
		||||
          BUILDAH_ISOLATION: chroot
 | 
			
		||||
      - name: Build Images
 | 
			
		||||
        run: |
 | 
			
		||||
          cd fedora-40 && \
 | 
			
		||||
          buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs manifest create code.lightstands.xyz/standcoded/fedora:40 && \
 | 
			
		||||
          buildah --storage-opt mount_program=/usr/bin/fuse-overlayfs --cgroup-manager=cgroupfs build --arch aarch64 \
 | 
			
		||||
            --pid=host --ipc=host --network=host --userns=host --uts=host --squash \
 | 
			
		||||
            --pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf:O \
 | 
			
		||||
            --manifest code.lightstands.xyz/standcoded/fedora:40 .
 | 
			
		||||
        env:
 | 
			
		||||
          BUILDAH_ISOLATION: chroot
 | 
			
		||||
| 
						 | 
				
			
			@ -35,5 +47,6 @@ jobs:
 | 
			
		|||
        run: |
 | 
			
		||||
          buildah login code.lightstands.xyz \
 | 
			
		||||
            --username ${{ env.GITHUB_ACTOR }} --password ${{ secrets.PUBLICATION_TOKEN }} && \
 | 
			
		||||
          buildah manifest push code.lightstands.xyz/standcoded/fedora:40-minimal --all && \
 | 
			
		||||
          buildah manifest push code.lightstands.xyz/standcoded/fedora:40 --all
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue