Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdroid-repo
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
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
fdroid-repo
Commits
97c03c30
Verified
Commit
97c03c30
authored
5 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Allow repo to use makefile to reduce need to run rebuild
parent
6898af7c
Loading
Loading
Loading
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Dockerfile
+9
-1
9 additions, 1 deletion
Dockerfile
Makefile
+11
-0
11 additions, 0 deletions
Makefile
build.sh
+1
-3
1 addition, 3 deletions
build.sh
push.sh
+7
-0
7 additions, 0 deletions
push.sh
update_repo.sh
+8
-4
8 additions, 4 deletions
update_repo.sh
with
36 additions
and
8 deletions
Dockerfile
+
9
−
1
View file @
97c03c30
FROM
registry.gitlab.com/fdroid/docker-executable-fdroidserver:latest
RUN
apt-get update
&&
apt-get
-y
install
python-pip
RUN
apt-get update
&&
\
apt-get
-y
install
--no-install-recommends
\
python-pip
\
python-wheel
\
python-setuptools
\
apksigner
RUN
pip
install
s3cmd
ADD
update_repo.sh /
ADD
Makefile /
ENV
UPDATE_WAIT=10
ENTRYPOINT
[ "/update_repo.sh" ]
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
11
−
0
View file @
97c03c30
.PHONY
:
build
$(REPO_PATH)/index.jar
:
$(REPO_PATH)
fdroid update
--use-date-from-apk
fdroid server update
$(REPO_PATH)
:
s3
rsync
-rlpcgoDv
$(
S3_PATH
)
/
*
-release
.apk
$(
REPO_PATH
)
/
.PHONY
:
s3
s3
:
s3cmd
sync
--preserve
s3://releases/quasseldroid-ng/
$(
S3_PATH
)
/
This diff is collapsed.
Click to expand it.
build.sh
+
1
−
3
View file @
97c03c30
...
...
@@ -2,8 +2,6 @@
IMAGE
=
k8r.eu/justjanne/fdroid-repo
TAGS
=
$(
git describe
--always
--tags
HEAD
)
docker build
-t
$IMAGE
:
$TAGS
.
docker build
--pull
-t
$IMAGE
:
$TAGS
.
docker tag
$IMAGE
:
$TAGS
$IMAGE
:latest
echo
Successfully tagged
$IMAGE
:latest
docker push
$IMAGE
:
$TAGS
docker push
$IMAGE
:latest
This diff is collapsed.
Click to expand it.
push.sh
0 → 100755
+
7
−
0
View file @
97c03c30
#!/bin/sh
IMAGE
=
k8r.eu/justjanne/fdroid-repo
TAGS
=
$(
git describe
--always
--tags
HEAD
)
docker push
$IMAGE
:
$TAGS
docker push
$IMAGE
:latest
echo
Successfully pushed
$IMAGE
:
$TAGS
as
$IMAGE
:latest
This diff is collapsed.
Click to expand it.
update_repo.sh
+
8
−
4
View file @
97c03c30
#!/bin/sh
SOURCE_PATH
=
/tmp/fdroid
REPO_PATH
=
$SOURCE_PATH
/repo/
S3_PATH
=
$SOURCE_PATH
/s3/
mkdir
-p
$SOURCE_PATH
/
cp
/Makefile
$SOURCE_PATH
/
cd
$SOURCE_PATH
mkdir
-p
$SOURCE_PATH
/repo/
mkdir
-p
$REPO_PATH
mkdir
-p
$S3_PATH
while
true
;
do
s3cmd
sync
--preserve
$APP
$SOURCE_PATH
/repo/
rm
-rf
$SOURCE_PATH
/repo/
*
-latest
.apk
fdroid update
&&
fdroid server update
make
sleep
$UPDATE_WAIT
done
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