mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	
						commit
						33520b2a66
					
				
					 2 changed files with 34 additions and 0 deletions
				
			
		
							
								
								
									
										25
									
								
								.github/workflows/image.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/image.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | ||||||
|  | name: Build Docker Image + Push | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     branches:  | ||||||
|  |       - typescript | ||||||
|  |       - docker | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout code | ||||||
|  |         uses: actions/checkout@v2 | ||||||
|  |       - name: Install Docker BuildX | ||||||
|  |         id: buildx | ||||||
|  |         uses: crazy-max/ghaction-docker-buildx@v1 | ||||||
|  |         with: | ||||||
|  |           version: latest | ||||||
|  |       - name: Login to Docker Hub | ||||||
|  |         run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||||||
|  |       - name: Build the image | ||||||
|  |         run: | | ||||||
|  |           docker buildx build \ | ||||||
|  |           --tag keanucode/travbot-v3:latest \ | ||||||
|  |           --platform linux/amd64,linux/arm/v7,linux/arm64 --push . | ||||||
							
								
								
									
										9
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | ||||||
|  | FROM node:current-alpine | ||||||
|  | 
 | ||||||
|  | COPY . . | ||||||
|  | 
 | ||||||
|  | RUN npm i | ||||||
|  | 
 | ||||||
|  | RUN npm run build | ||||||
|  | 
 | ||||||
|  | CMD ["npm", "start"] | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue