mirror of
				https://github.com/TomWright/dasel.git
				synced 2022-05-22 02:32:45 +03:00 
			
		
		
		
	Use ghcr instead of packages
This commit is contained in:
		
							
								
								
									
										12
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -47,19 +47,19 @@ jobs: | ||||
|           tag: ${{ github.ref }} | ||||
|       - name: Build docker image | ||||
|         if: runner.os == 'Linux' | ||||
|         run: docker build --build-arg daselpath=target/release/${{ matrix.artifact_name }} -f docker/Dockerfile -t tomwright/dasel/dasel:latest . | ||||
|         run: docker build --build-arg daselpath=target/release/${{ matrix.artifact_name }} -f docker/Dockerfile -t tomwright/dasel:latest . | ||||
|       - name: Docker login | ||||
|         if: runner.os == 'Linux' | ||||
|         run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u TomWright --password-stdin | ||||
|         run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u TomWright --password-stdin | ||||
|       - name: Docker tag latest | ||||
|         if: runner.os == 'Linux' | ||||
|         run: docker tag tomwright/dasel/dasel:latest docker.pkg.github.com/tomwright/dasel/dasel:latest | ||||
|         run: docker tag tomwright/dasel:latest ghcr.io/tomwright/dasel:latest | ||||
|       - name: Docker tag release | ||||
|         if: runner.os == 'Linux' | ||||
|         run: docker tag tomwright/dasel/dasel:latest docker.pkg.github.com/tomwright/dasel/dasel:${{ env.RELEASE_VERSION }} | ||||
|         run: docker tag tomwright/dasel:latest ghcr.io/tomwright/dasel:${{ env.RELEASE_VERSION }} | ||||
|       - name: Docker push latest | ||||
|         if: runner.os == 'Linux' | ||||
|         run: docker push docker.pkg.github.com/tomwright/dasel/dasel:latest | ||||
|         run: docker push ghcr.io/tomwright/dasel:latest | ||||
|       - name: Docker push release | ||||
|         if: runner.os == 'Linux' | ||||
|         run: docker push docker.pkg.github.com/tomwright/dasel/dasel:${{ env.RELEASE_VERSION }} | ||||
|         run: docker push ghcr.io/tomwright/dasel:${{ env.RELEASE_VERSION }} | ||||
| @@ -73,7 +73,7 @@ mv ./dasel /usr/local/bin/dasel | ||||
| ##### Docker | ||||
| You also have the option of using the docker image to run dasel for you. | ||||
| ```bash | ||||
| echo '{"name": "Tom"}' | docker run -i --rm docker.pkg.github.com/tomwright/dasel/dasel:latest -p json '.name' | ||||
| echo '{"name": "Tom"}' | docker run -i --rm ghcr.io/tomwright/dasel:latest -p json '.name' | ||||
| "Tom" | ||||
| ``` | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tom Wright
					Tom Wright