mirror of https://github.com/containers/podman.git
				
				
				
			Merge pull request #18238 from lsm5/makefile-release-artifact-target
Makefile: include `release-artifacts` target
This commit is contained in:
		
						commit
						3c995c2c52
					
				
							
								
								
									
										18
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										18
									
								
								Makefile
								
								
								
								
							| 
						 | 
				
			
			@ -951,6 +951,24 @@ install.tools: .install.golangci-lint ## Install needed tools
 | 
			
		|||
		$(PYTHON) -m pip install --user pre-commit; \
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
.PHONY: release-artifacts
 | 
			
		||||
release-artifacts: clean-binaries
 | 
			
		||||
	mkdir -p release/
 | 
			
		||||
	$(MAKE) podman-remote-release-darwin_amd64.zip
 | 
			
		||||
	mv podman-remote-release-darwin_amd64.zip release/
 | 
			
		||||
	$(MAKE) podman-remote-release-darwin_arm64.zip
 | 
			
		||||
	mv podman-remote-release-darwin_arm64.zip release/
 | 
			
		||||
	$(MAKE) podman-remote-release-windows_amd64.zip
 | 
			
		||||
	mv podman-remote-release-windows_amd64.zip release/
 | 
			
		||||
	$(MAKE) podman-remote-static-linux_amd64
 | 
			
		||||
	tar -cvzf podman-remote-static-linux_amd64.tar.gz bin/podman-remote-static-linux_amd64
 | 
			
		||||
	$(MAKE) podman-remote-static-linux_arm64
 | 
			
		||||
	tar -cvzf podman-remote-static-linux_arm64.tar.gz bin/podman-remote-static-linux_arm64
 | 
			
		||||
	mv podman-remote-static-linux*.tar.gz release/
 | 
			
		||||
	$(MAKE) podman.msi
 | 
			
		||||
	mv podman-v*.msi release/
 | 
			
		||||
	cd release/; sha256sum *.zip *.tar.gz *.msi > shasums
 | 
			
		||||
 | 
			
		||||
.PHONY: uninstall
 | 
			
		||||
uninstall:
 | 
			
		||||
	for i in $(filter %.1,$(MANPAGES_DEST)); do \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -241,16 +241,7 @@ spelled with complete minutiae.
 | 
			
		|||
 | 
			
		||||
      ```shell
 | 
			
		||||
      $ git checkout vX.Y.Z
 | 
			
		||||
      $ make podman-remote-release-darwin_amd64.zip \
 | 
			
		||||
          podman-remote-release-darwin_arm64.zip \
 | 
			
		||||
          podman-remote-release-windows_amd64.zip \
 | 
			
		||||
          podman-remote-static-linux_amd64 \
 | 
			
		||||
          podman-remote-static-linux_arm64
 | 
			
		||||
      $ mv podman-* bin/
 | 
			
		||||
      $ cd bin/
 | 
			
		||||
      $ tar -cvzf podman-remote-static-linux_amd64.tar.gz podman-remote-static-linux_amd64
 | 
			
		||||
      $ tar -cvzf podman-remote-static-linux_arm64.tar.gz podman-remote-static-linux_arm64
 | 
			
		||||
      $ sha256sum *.zip *.tar.gz > shasums
 | 
			
		||||
      $ make release-artifacts
 | 
			
		||||
      ```
 | 
			
		||||
 | 
			
		||||
   1. The `podman-vX.Y.Z.dmg` file is produced manually by someone in
 | 
			
		||||
| 
						 | 
				
			
			@ -267,9 +258,7 @@ spelled with complete minutiae.
 | 
			
		|||
      the release.
 | 
			
		||||
   1. Near the bottom of the page there is a box with the message
 | 
			
		||||
      “Add binaries by dropping them here or selecting them”.  Use
 | 
			
		||||
      that to upload the artifacts you previously downloaded, including
 | 
			
		||||
      the `shasums` file.
 | 
			
		||||
 | 
			
		||||
      that to upload the artifacts in the `release/` dir generated earlier:
 | 
			
		||||
      * podman-remote-release-darwin_amd64.zip
 | 
			
		||||
      * podman-remote-release-darwin_arm64.zip
 | 
			
		||||
      * podman-remote-release-windows_amd64.zip
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue