2020-09-02 13:25:44 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2022-01-06 10:07:57 +00:00
|
|
|
image: golang:1
|
2020-09-02 13:25:44 +00:00
|
|
|
commands:
|
2024-05-31 12:02:20 +00:00
|
|
|
- apt-get update && apt-get install -y build-essential git
|
|
|
|
- go get -d
|
|
|
|
- go build -ldflags="-s -w" -o chldapasswd
|
2020-09-02 15:23:40 +00:00
|
|
|
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: nemunaire/chldapasswd
|
|
|
|
tags: latest
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
2024-05-24 08:40:20 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
- push
|
|
|
|
- tag
|