Skip to content

Commit

Permalink
update supported arches for kn-workflow-cli-artifacts image
Browse files Browse the repository at this point in the history
  • Loading branch information
rgdoliveira committed May 6, 2024
1 parent 607bca2 commit c0305d1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion images/modules/com.redhat.osl.cli.artifacts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

set -e

mkdir -p /usr/share/kn/{linux_amd64,linux_ppc64le,linux_s390x,macos,windows}
mkdir -p /usr/share/kn/{linux_amd64,linux_aarch64,macos,windows}
10 changes: 3 additions & 7 deletions images/modules/com.redhat.osl.cli.artifacts/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ artifacts:
path: /opt/app-root/src/go/src/github.com/knative/client/kn-workflow-linux-amd64.tar.gz
dest: /usr/share/kn/linux_amd64/
- image: packager
name: kn-workflow-linux-ppc64le
path: /opt/app-root/src/go/src/github.com/knative/client/kn-workflow-linux-ppc64le.tar.gz
dest: /usr/share/kn/linux_ppc64le/
- image: packager
name: kn-workflow-linux-s390x
path: /opt/app-root/src/go/src/github.com/knative/client/kn-workflow-linux-s390x.tar.gz
dest: /usr/share/kn/linux_s390x/
name: kn-workflow-linux-aarch64
path: /opt/app-root/src/go/src/github.com/knative/client/kn-workflow-linux-aarch64.tar.gz
dest: /usr/share/kn/linux_aarch64/
- image: packager
name: kn-workflow-macos-amd64
path: /opt/app-root/src/go/src/github.com/knative/client/kn-workflow-macos-amd64.tar.gz
Expand Down
8 changes: 3 additions & 5 deletions images/modules/com.redhat.osl.cli.packager/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ cd "${KN_WORK_DIR}"
mv "/tmp/LICENSE" .

wget -P "${KN_WORK_DIR}" "${KN_ARTIFACT_URL}/amd64/linux/kn-workflow-linux-amd64"
wget -P "${KN_WORK_DIR}" "${KN_ARTIFACT_URL}/ppc64le/linux/kn-workflow-linux-ppc64le"
wget -P "${KN_WORK_DIR}" "${KN_ARTIFACT_URL}/s390x/linux/kn-workflow-linux-s390x"
wget -P "${KN_WORK_DIR}" "${KN_ARTIFACT_URL}/aarch64/linux/kn-workflow-linux-aarch64"
wget -P "${KN_WORK_DIR}" "${KN_ARTIFACT_URL}/amd64/windows/kn-workflow-windows-amd64.exe"
wget -P "${KN_WORK_DIR}" "${KN_ARTIFACT_URL}/amd64/macos/kn-workflow-darwin-amd64"

chmod +x kn-workflow-linux-amd64 kn-workflow-linux-ppc64le kn-workflow-linux-s390x kn-workflow-windows-amd64.exe kn-workflow-darwin-amd64
chmod +x kn-workflow-linux-amd64 kn-workflow-linux-aarch64 kn-workflow-windows-amd64.exe kn-workflow-darwin-amd64

tar --transform='flags=r;s|kn-workflow-linux-amd64|kn|' -zcf kn-workflow-linux-amd64.tar.gz kn-workflow-linux-amd64 LICENSE
tar --transform='flags=r;s|kn-workflow-linux-ppc64le|kn|' -zcf kn-workflow-linux-ppc64le.tar.gz kn-workflow-linux-ppc64le LICENSE
tar --transform='flags=r;s|kn-workflow-linux-s390x|kn|' -zcf kn-workflow-linux-s390x.tar.gz kn-workflow-linux-s390x LICENSE
tar --transform='flags=r;s|kn-workflow-linux-aarch64|kn|' -zcf kn-workflow-linux-aarch64.tar.gz kn-workflow-linux-aarch64 LICENSE
tar --transform='flags=r;s|kn-workflow-darwin-amd64|kn|' -zcf kn-workflow-macos-amd64.tar.gz kn-workflow-darwin-amd64 LICENSE

mkdir "${KN_WORK_DIR}/windows" && mv kn-workflow-windows-amd64.exe "${KN_WORK_DIR}/windows/kn.exe" && cp LICENSE "${KN_WORK_DIR}/windows/" && zip --quiet --junk-path - "${KN_WORK_DIR}/windows/*" > kn-workflow-windows-amd64.zip
1 change: 0 additions & 1 deletion images/osl-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ osbs:
only:
- x86_64
- aarch64
- ppc64le
compose:
pulp_repos: true
repository:
Expand Down

0 comments on commit c0305d1

Please sign in to comment.