1
1
mirror of https://github.com/drone-plugins/github-actions synced 2024-11-15 02:56:25 +01:00
github.com-drone-plugins-gi.../scripts/docker.sh
2021-09-27 10:48:58 +05:30

15 lines
252 B
Bash
Executable File

#!/bin/sh
# force go modules
export GOPATH=""
# disable cgo
export CGO_ENABLED=0
set -e
set -x
# linux
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/plugin ./cmd
docker build -f docker/Dockerfile.linux.amd64 -t plugins/github-actions .