Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Woazboat
flow3r firmware
Commits
5ab461c2
Commit
5ab461c2
authored
1 year ago
by
q3k
Browse files
Options
Downloads
Patches
Plain Diff
ci: fix package naming for tags, upload raw binaries
parent
144ce87c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/dist.sh
+18
-6
18 additions, 6 deletions
tools/dist.sh
with
18 additions
and
6 deletions
tools/dist.sh
+
18
−
6
View file @
5ab461c2
...
...
@@ -14,7 +14,7 @@ fi
if
[
!
-z
"
${
CI
}
"
]
;
then
if
[
!
-z
"
${
CI_COMMIT_TAG
}
"
]
;
then
# If we're building a tag, just use that as a version.
version
=
"
v
${
CI_COMMIT_TAG
}
"
version
=
"
${
CI_COMMIT_TAG
}
"
else
# Otherwise, let normal version machinery run, but fetch all changes
# and check out the correct branch. Otherwise we'll get weird version
...
...
@@ -94,8 +94,20 @@ mkdir -p dist
tar
=
"dist/
${
name
}
.tar.bz2"
tar
-cjf
"
${
tar
}
"
-C
"
${
tmpdir
}
"
"
${
name
}
"
if
[
!
-z
"
$CI_JOB_TOKEN
"
]
;
then
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
\
--upload-file
"
${
tar
}
"
\
"
${
CI_API_V4_URL
}
/projects/
${
CI_PROJECT_ID
}
/packages/generic/flow3r-firmware/
${
version
}
/
${
name
}
.tar.bz2"
fi
function
upload
()
{
from
=
$1
to
=
$2
if
[
!
-z
"
$CI_JOB_TOKEN
"
]
;
then
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN
"
\
--upload-file
"
${
from
}
"
\
"
${
CI_API_V4_URL
}
/projects/
${
CI_PROJECT_ID
}
/packages/generic/flow3r-firmware/
${
version
}
/
${
to
}
"
else
echo
Would upload
$from
to
$to
fi
}
upload
"
${
tar
}
"
"
${
name
}
.tar.bz2"
upload
"
${
distdir
}
/recovery.bin"
"recovery.bin"
upload
"
${
distdir
}
/partition-table.bin"
"partition-table.bin"
upload
"
${
distdir
}
/bootloader.bin"
"bootloader.bin"
upload
"
${
distdir
}
/flow3r.bin"
"flow3r.bin"
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