-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds multi arch build for workflow (#31)
* feat: add multiarch build using matrix strategy * ci: add arm64 using matrix strategy * ci: amissing build steps for full multi-arch * ci: change assets to include in semantic-release * ci: revert changee for generate.go. not needed to force arch * fix: force amd64 for goarch on generate.go on amd64 builds * fix: change var from GOARCH to GO_ARCH avoids conflict with go generate --------- Co-authored-by: zs-ko <[email protected]>
- Loading branch information
Showing
6 changed files
with
68 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM vault:1.12.5 | ||
RUN mkdir -p /etc/vault/vault_plugins | ||
RUN mkdir -p /etc/vault/vault_plugins_checksums | ||
COPY build/vault/plugins/vault-plugin-secrets-nats /etc/vault/vault_plugins | ||
COPY build/vault/plugins/vault-plugin-secrets-nats-linux-amd64 /etc/vault/vault_plugins/vault-plugin-secrets-nats | ||
RUN sha256sum /etc/vault/vault_plugins/vault-plugin-secrets-nats > /etc/vault/vault_plugins_checksums/vault-plugin-secrets-nats.sha256 | ||
RUN cat /etc/vault/vault_plugins_checksums/* | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#!/bin/sh | ||
set -e | ||
NEXTVERSION=$1 | ||
sha256sum build/vault/plugins/vault-plugin-secrets-nats > build/vault/plugins/vault-plugin-secrets-nats.sha256 | ||
for file in build/vault/plugins/vault-plugin-secrets-nats-*; do | ||
sha256sum $file > $file.sha256 | ||
# this is to retain backward compatibility with the old naming convention | ||
if echo "$file" | grep -q "amd64"; then | ||
cp $file ./build/vault/plugins/vault-plugin-secrets-nats | ||
cp $file.sha256 build/vault/plugins/vault-plugin-secrets-nats.sha256 | ||
fi | ||
done | ||
# only use x86 for the README.md and dev/manifests/vault/vault.yaml | ||
export SHA256SUM=$(cat build/vault/plugins/vault-plugin-secrets-nats.sha256 | cut -d ' ' -f1) | ||
sed -i "s#sha256: .*#sha256: ${SHA256SUM}#g" README.md | ||
sed -i "s#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:.*#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:${NEXTVERSION}#g" README.md | ||
sed -i "s#sha256: .*#sha256: ${SHA256SUM}#g" dev/manifests/vault/vault.yaml | ||
sed -i "s#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:.*#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:${NEXTVERSION}#g" dev/manifests/vault/vault.yaml | ||
sed -i "s#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:.*#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:${NEXTVERSION}#g" dev/manifests/vault/vault.yaml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
//go:build generate | ||
// +build generate | ||
|
||
package natsbackend | ||
|
||
|