Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
flux2
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
fluxcd
flux2
Commits
f52387e8
Unverified
Commit
f52387e8
authored
3 years ago
by
Stefan Prodan
Browse files
Options
Downloads
Patches
Plain Diff
Add ARM and ARM64 support to flux GitHub Action
Signed-off-by:
Stefan Prodan
<
stefan.prodan@gmail.com
>
parent
9efc4986
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
action/README.md
+11
-1
11 additions, 1 deletion
action/README.md
action/action.yml
+6
-1
6 additions, 1 deletion
action/action.yml
with
17 additions
and
2 deletions
action/README.md
+
11
−
1
View file @
f52387e8
...
...
@@ -10,11 +10,21 @@ Usage:
run
:
flux -v
```
Note that this action can only be used on GitHub
**Linux AMD64**
runners.
The latest stable version of the
`flux`
binary is downloaded from
GitHub
[
releases
](
https://github.com/fluxcd/flux2/releases
)
and placed at
`/usr/local/bin/flux`
.
Note that this action can only be used on GitHub
**Linux**
runners.
You can change the arch (defaults to
`amd64`
) with:
```
yaml
steps
:
-
name
:
Setup Flux CLI
uses
:
fluxcd/flux2/action@main
with
:
arch
:
arm64
# can be amd64, arm64 or arm
```
You can download a specific version with:
```
yaml
...
...
This diff is collapsed.
Click to expand it.
action/action.yml
+
6
−
1
View file @
f52387e8
...
...
@@ -8,19 +8,24 @@ inputs:
version
:
description
:
"
Flux
version
e.g.
0.8.0
(defaults
to
latest
stable
release)"
required
:
false
arch
:
description
:
"
arch
can
be
amd64,
arm64
or
arm"
required
:
true
default
:
"
amd64"
runs
:
using
:
composite
steps
:
-
name
:
"
Download
flux
binary
to
tmp"
shell
:
bash
run
:
|
ARCH=${{ inputs.arch }}
VERSION=${{ inputs.version }}
if [ -z $VERSION ]; then
VERSION=$(curl https://api.github.com/repos/fluxcd/flux2/releases/latest -sL | grep tag_name | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 2-)
fi
BIN_URL="https://github.com/fluxcd/flux2/releases/download/v${VERSION}/flux_${VERSION}_linux_
amd64
.tar.gz"
BIN_URL="https://github.com/fluxcd/flux2/releases/download/v${VERSION}/flux_${VERSION}_linux_
${ARCH}
.tar.gz"
curl -sL ${BIN_URL} -o /tmp/flux.tar.gz
mkdir -p /tmp/flux
tar -C /tmp/flux/ -zxvf /tmp/flux.tar.gz
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment