Skip to content

Commit

Permalink
ci: add script to prepare plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Dec 6, 2024
1 parent 4f71bfd commit 08f57d0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
# Go workspace file
go.work
fleeting-plugin-openstack
dist/
18 changes: 18 additions & 0 deletions ci/release-oci-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -x

copybin() {
local gorel=$1
local plugarch=$2
mkdir -p "dist/$plugarch/plugin"
cp -p "dist/$gorel/bin"/* "dist/$plugarch/plugin/"
}

# move binaries to places expected by fleetine-artifact
copybin fleeting-plugin-openstack_linux_386_sse2 linux/386
copybin fleeting-plugin-openstack_linux_amd64_v1 linux/amd64
copybin fleeting-plugin-openstack_linux_arm64_v8.0 linux/arm64
copybin fleeting-plugin-openstack_linux_arm_7 linux/armv7

go install gitlab.com/gitlab-org/fleeting/fleeting-artifact/...@latest

0 comments on commit 08f57d0

Please sign in to comment.