collect reusable code
This commit is contained in:
		
							parent
							
								
									efd52d057f
								
							
						
					
					
						commit
						bacbf7d67e
					
				
					 10 changed files with 290 additions and 63 deletions
				
			
		| 
						 | 
				
			
			@ -21,26 +21,20 @@ jobs:
 | 
			
		|||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
      - name: Setup Bun
 | 
			
		||||
        uses: oven-sh/setup-bun@v2
 | 
			
		||||
        with:
 | 
			
		||||
          bun-version-file: 'package.json'
 | 
			
		||||
      - name: Fulfill Package Manager Cache
 | 
			
		||||
        run: dnf makecache -y --releasever 40
 | 
			
		||||
      - name: Sign in to Image Index
 | 
			
		||||
        run: buildah login code.lightstands.xyz --username ${{ env.GITHUB_ACTOR }} --password ${{ secrets.PUBLICATION_TOKEN }}
 | 
			
		||||
      - name: Build Minimal Images
 | 
			
		||||
        run: |
 | 
			
		||||
          cd fedora-40-minimal && \
 | 
			
		||||
          buildah manifest create code.lightstands.xyz/standcoded/fedora-minimal:40 && \
 | 
			
		||||
          buildah build --arch aarch64 \
 | 
			
		||||
            --pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf \
 | 
			
		||||
            --manifest code.lightstands.xyz/standcoded/fedora-minimal:40 .
 | 
			
		||||
        run: DNF_CACHE_PATH=/var/cache/dnf bun shared/build-image.ts code.lightstands.xyz/standcoded/fedora-minimal:40 fedora-40-minimal aarch64
 | 
			
		||||
      - name: Push Minimal Images
 | 
			
		||||
        run: buildah manifest push code.lightstands.xyz/standcoded/fedora-minimal:40 --all
 | 
			
		||||
      - name: Build Complete Images
 | 
			
		||||
        run: |
 | 
			
		||||
          cd fedora-40 && \
 | 
			
		||||
          buildah manifest create code.lightstands.xyz/standcoded/fedora:40 && \
 | 
			
		||||
          buildah build --arch aarch64 \
 | 
			
		||||
            --pid=host --ipc=host --network=host --userns=host --uts=host -v /var/cache/dnf:/var/cache/dnf \
 | 
			
		||||
            --manifest code.lightstands.xyz/standcoded/fedora:40 .
 | 
			
		||||
        run: DNF_CACHE_PATH=/var/cache/dnf bun shared/build-image.ts code.lightstands.xyz/standcoded/fedora:40 fedora-40 aarch64
 | 
			
		||||
      - name: Push Complete Images
 | 
			
		||||
        run: buildah manifest push code.lightstands.xyz/standcoded/fedora:40 --all
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue