pipeline { agent { docker { image 'rbehzadan/golang_goreleaser:1.22.1-1.24.0' } } environment { GITEA_TOKEN = credentials('git.behzadan.ir') } stages { stage('Build') { steps { sh 'make build' } } stage('Test') { steps { sh 'make test' } } stage('Release') { steps { sh 'goreleaser release' } } stage('Cleanup') { steps { sh 'make clean' } } } }