Compare commits
	
		
			3 commits
		
	
	
		
			aab5830cf0
			...
			2987c48db8
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 2987c48db8 | ||
|  | 6c12b22026 | ||
|  | 0dc45b8b56 | 
					 1 changed files with 12 additions and 8 deletions
				
			
		|  | @ -24,11 +24,14 @@ jobs: | |||
|       # cheatsheet: https://nexveridian.com/blog/forgejo-pushing-container-images/ | ||||
|       - name: Prepare environment | ||||
|         run: | | ||||
|           # configure container policy to accept insecure registry | ||||
|           mkdir -p ~/.config/containers | ||||
|           # configure container policy to accept insecure registry | ||||
|           echo "Creating config file..." | ||||
|           echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json | ||||
|           echo "Created config file" | ||||
|    | ||||
|           # configure authentication | ||||
|           echo "Creating auth file..." | ||||
|           cat > ~/.config/containers/auth.json <<EOF | ||||
|           { | ||||
|             "auths": { | ||||
|  | @ -38,12 +41,10 @@ jobs: | |||
|             } | ||||
|           } | ||||
|           EOF | ||||
|           echo "Created auth file" | ||||
| 
 | ||||
|       - uses: actions/checkout@v4 | ||||
| 
 | ||||
|       # - name: Log into registry | ||||
|       #   run: | | ||||
|       #     echo "${{ secrets.PACKAGE_TOKEN }}" | podman login --username "${{ forge.actor }}" --password-stdin ${{ env.registry }} | ||||
|       - name: Checkout repo | ||||
|         uses: actions/checkout@v4 | ||||
| 
 | ||||
|       - name: Create image | ||||
|         run: | | ||||
|  | @ -51,5 +52,8 @@ jobs: | |||
|           podman load < result | ||||
| 
 | ||||
|       - name: Push image | ||||
|         run: | | ||||
|           podman push --authfile=~/.config/containers/auth.json localhost/${{ env.image }}:${{ env.tag }} ${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }} | ||||
|         run: >- | ||||
|           podman push | ||||
|           --authfile=/root/.config/containers/auth.json | ||||
|           localhost/${{ env.image }}:${{ env.tag }} | ||||
|           ${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue