This commit is contained in:
		
							parent
							
								
									49ec1fa31a
								
							
						
					
					
						commit
						15bf043799
					
				
					 2 changed files with 3 additions and 28 deletions
				
			
		
							
								
								
									
										25
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								.drone.yml
									
									
									
									
									
								
							| 
						 | 
					@ -1,25 +0,0 @@
 | 
				
			||||||
kind: pipeline
 | 
					 | 
				
			||||||
type: docker
 | 
					 | 
				
			||||||
name: image building
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
steps:
 | 
					 | 
				
			||||||
- name: build&push
 | 
					 | 
				
			||||||
  image: registry.kube.ceperka.net/library/builder:38
 | 
					 | 
				
			||||||
  environment:
 | 
					 | 
				
			||||||
    # username: robot$library+droneci
 | 
					 | 
				
			||||||
    # password: 
 | 
					 | 
				
			||||||
    #   from_secret: repo_password
 | 
					 | 
				
			||||||
    # image: harbor.hq.rosti.cz/library/builder
 | 
					 | 
				
			||||||
    # repo: harbor.hq.rosti.cz
 | 
					 | 
				
			||||||
    username: admin
 | 
					 | 
				
			||||||
    password: admin
 | 
					 | 
				
			||||||
    repo: registry.kube.ceperka.net
 | 
					 | 
				
			||||||
    image: registry.kube.ceperka.net/library/builder
 | 
					 | 
				
			||||||
    tag: 38
 | 
					 | 
				
			||||||
  privileged: true
 | 
					 | 
				
			||||||
  commands:
 | 
					 | 
				
			||||||
  - echo "$password" | podman login -u $username --password-stdin $repo
 | 
					 | 
				
			||||||
  - podman build -t $image:$tag .
 | 
					 | 
				
			||||||
  - podman tag $image:$tag $image:latest
 | 
					 | 
				
			||||||
  - podman push $image:$tag
 | 
					 | 
				
			||||||
  - podman push $image:latest
 | 
					 | 
				
			||||||
| 
						 | 
					@ -9,17 +9,17 @@ jobs:
 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
    runs-on: [amd64, prod]
 | 
					    runs-on: [amd64, prod]
 | 
				
			||||||
    container:
 | 
					    container:
 | 
				
			||||||
      image: 
 | 
					      image: harbor.rosti.cz/library/builder:38
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
    - uses: actions/checkout@v3
 | 
					    - uses: actions/checkout@v3
 | 
				
			||||||
    - name: Login into registry
 | 
					    - name: Login into registry
 | 
				
			||||||
      envs:
 | 
					      envs:
 | 
				
			||||||
        REGISTRY: harbor.rosti.cz
 | 
					        REGISTRY: harbor.rosti.cz
 | 
				
			||||||
        USERNAME: robot_lib
 | 
					        USERNAME: robot_library+lib
 | 
				
			||||||
        PASSWORD:
 | 
					        PASSWORD:
 | 
				
			||||||
          from_secret: REGISTRY_TOKEN
 | 
					          from_secret: REGISTRY_TOKEN
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        docker login -u $USERNAME -p "$PASSWORD" $REGISTRY 
 | 
					        docker login -u "$USERNAME" -p "$PASSWORD" $REGISTRY 
 | 
				
			||||||
    - name: Build
 | 
					    - name: Build
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        task build
 | 
					        task build
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue