Added docker building.
This commit is contained in:
		@ -11,6 +11,8 @@ stages:
 | 
			
		||||
.test-template:
 | 
			
		||||
  tags:
 | 
			
		||||
    - kube
 | 
			
		||||
  except:
 | 
			
		||||
    - master
 | 
			
		||||
  image: rust:1.67.1-buster
 | 
			
		||||
  stage: test
 | 
			
		||||
  interruptible: true
 | 
			
		||||
@ -35,3 +37,16 @@ fmt:
 | 
			
		||||
  script:
 | 
			
		||||
    - rustup component add rustfmt
 | 
			
		||||
    - pre-commit run fmt -av
 | 
			
		||||
 | 
			
		||||
build_img:
 | 
			
		||||
  tags:
 | 
			
		||||
    - kube
 | 
			
		||||
  only:
 | 
			
		||||
    - master
 | 
			
		||||
  image:
 | 
			
		||||
    name: r.j3ss.co/img
 | 
			
		||||
    entrypoint: [""]
 | 
			
		||||
  script:
 | 
			
		||||
    - img login --password "${DOCKER_PASSWORD}" --username "${DOCKER_USER}" "${DOCKER_REGISTRY}"
 | 
			
		||||
    - img build --no-console -t docker.le-memese.com/bots/s3bot:latest .
 | 
			
		||||
    - img push docker.le-memese.com/bots/s3bot:latest
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user