Create a pipeline with https://gist.github.com/370a05e0bf7645bc6728ca18b0b23295.git
with and a single upload step with buildkite-agent pipeline upload buildkite-pipeline.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- label: "Test local plugin" | |
agents: | |
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE:-default}" | |
plugins: | |
"/Users/lachlan/Projects/buildkite/docker-compose-buildkite-plugin": ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.3 | |
RUN echo "CACHE MISS" && sleep 10 | |
RUN apk update && \ | |
apk add --no-cache openssl && \ | |
rm -rf /var/cache/apk/* | |
RUN echo "CACHE MISS" && sleep 10 | |
RUN openssl req -x509 -nodes -newkey rsa:4096 -keyout /key.pem -out /certificate.pem -days 720 -subj "/C=US/ST=State/L=City/O=Department/OU=Company/CN=localhost.localdomain" | |
RUN echo "CACHE MISS" && sleep 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package graphql | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/http/httputil" | |
"net/url" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- label: "Generate artifacts" | |
command: | |
- dd if=/dev/zero of=output.dat bs=1m count=10 | |
- buildkite-agent artifact upload output.dat s3://lox-buildkite-artifacts/$BUILDKITE_JOB_ID | |
- wait | |
- label: "Download artifacts" | |
commands: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reads either a value or a list from plugin config | |
function plugin_read_list() { | |
local prefix="BUILDKITE_PLUGIN_GOLANG_BUILD_$1" | |
local parameter="${prefix}_0" | |
if [[ -n "${!parameter:-}" ]]; then | |
local i=0 | |
local parameter="${prefix}_${i}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
$agentVersion = "3.0-beta.39", | |
$agentToken = "xxx", | |
$agentTags = "windows", | |
$installDir = "C:\buildkite" | |
) | |
## Verify we are elevated | |
## https://superuser.com/questions/749243/detect-if-powershell-is-running-as-administrator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- command: "echo hello world!" | |
- block: "Request Release" | |
fields: | |
- text: "S3 File Path" | |
key: "file-path" | |
required: true | |
hint: | | |
What is the file path/s for this import? Here is a list of files: | |
blah.txt |