Skip to content

Commit

Permalink
ATEAM-15482: Updating for Multi-Arch (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
hikerspath authored Jun 13, 2023
1 parent 42a4d59 commit 3886724
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ kind: pipeline
type: docker
name: default

trigger:
ref:
include:
- refs/heads/master
- refs/pull/**
- refs/tags/**

steps:
- name: build
- name: build-amd64
image: golang:1.12
commands:
- apt update && apt install ca-certificates libgnutls30 -y
Expand All @@ -14,7 +21,7 @@ steps:
- pull_request
- tag

- name: artifacts
- name: artifacts-amd64
image: golang:1.12
commands:
- tar -cvzf release/terraform-credentials-env_linux_amd64.tar.gz -C release/linux/amd64 terraform-credentials-env
Expand All @@ -23,7 +30,27 @@ steps:
event:
- push
- tag

- name: build-arm64
image: golang:1.12
commands:
- apt update && apt install ca-certificates libgnutls30 -y
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/arm64/terraform-credentials-env
when:
event:
- push
- pull_request
- tag

- name: artifacts-arm64
image: golang:1.12
commands:
- tar -cvzf release/terraform-credentials-env_linux_arm64.tar.gz -C release/linux/arm64 terraform-credentials-env
- sha256sum release/*.tar.gz >> release/terraform-credentials-env_checksums.txt
when:
event:
- push
- tag
- name: release
image: plugins/github-release
settings:
Expand All @@ -34,10 +61,3 @@ steps:
from_secret: api_key
when:
event: tag

trigger:
ref:
include:
- refs/heads/master
- refs/pull/**
- refs/tags/**

0 comments on commit 3886724

Please sign in to comment.