Updated to jenkins and gitea #4
@@ -1,19 +0,0 @@
 | 
				
			|||||||
stages:
 | 
					 | 
				
			||||||
  - build
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
variables:
 | 
					 | 
				
			||||||
  PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/installer"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
build:
 | 
					 | 
				
			||||||
    stage: build
 | 
					 | 
				
			||||||
    image: rust:alpine
 | 
					 | 
				
			||||||
    rules:
 | 
					 | 
				
			||||||
      - if: $CI_COMMIT_BRANCH == "installer"
 | 
					 | 
				
			||||||
    script:
 | 
					 | 
				
			||||||
        - apk add pkgconf musl-dev curl
 | 
					 | 
				
			||||||
        - RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s' cargo build --release --target x86_64-unknown-linux-musl
 | 
					 | 
				
			||||||
        - cp target/x86_64-unknown-linux-musl/release/dotfiles_installer ./installer-amd64
 | 
					 | 
				
			||||||
        - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file installer-amd64 "${PACKAGE_REGISTRY_URL}/dev-$CI_COMMIT_SHA/installer-amd64"'
 | 
					 | 
				
			||||||
    artifacts:
 | 
					 | 
				
			||||||
        paths:
 | 
					 | 
				
			||||||
            - installer-amd64
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user