forked from Ivasoft/github-actions
All checks were successful
continuous-integration/drone/push Build is passing
32 lines
802 B
YAML
32 lines
802 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: act
|
|
image: golang:1.21
|
|
commands:
|
|
- git clone https://github.com/nektos/act.git && cd act
|
|
- export ACT_VERSION=$(git describe --tags --dirty --always | sed -e 's/^v//')
|
|
- git apply ../patches/001-workdir-bind.patch
|
|
- mkdir bin
|
|
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$ACT_VERSION" -o bin/act main.go
|
|
|
|
- name: build
|
|
image: golang:1.21
|
|
commands:
|
|
- go test ./...
|
|
- sh scripts/build.sh
|
|
|
|
- name: docker
|
|
image: plugins/docker
|
|
settings:
|
|
registry: https://git.ivasoft.cz
|
|
username:
|
|
from_secret: repo_user
|
|
password:
|
|
from_secret: repo_pass
|
|
repo: git.ivasoft.cz/sw/github-actions
|
|
dockerfile: docker/Dockerfile.linux.amd64
|
|
tags:
|
|
- latest
|
|
- ${DRONE_TAG:-latest} |