Automatic user

This commit is contained in:
George K 2018-03-12 11:23:21 +03:00
parent 13b41a8d85
commit a16d0674de
2 changed files with 3 additions and 2 deletions

View File

@ -14,4 +14,5 @@ RUN adduser -D builder \
&& chmod g+w /var/cache/distfiles \ && chmod g+w /var/cache/distfiles \
&& su -c "abuild-keygen -a -i -n" builder \ && su -c "abuild-keygen -a -i -n" builder \
&& mkdir /projects && mkdir /projects
USER builder
WORKDIR /projects WORKDIR /projects

View File

@ -22,8 +22,8 @@ release:
RV: "1.0.1-r1" RV: "1.0.1-r1"
REPO: "https://nexus.example.org/repository/apk/myrepo" REPO: "https://nexus.example.org/repository/apk/myrepo"
script: script:
- su -c "abuild checksum" builder - abuild checksum
- su -c "abuild -r" builder - abuild -r
- cd /home/builder/packages/${CI_PROJECT_NAMESPACE}/x86_64 - cd /home/builder/packages/${CI_PROJECT_NAMESPACE}/x86_64
- curl -v -u ${APK_REPO_CRED} --upload-file myrepo-$RV.apk $REPO/myrepo-$RV.apk - curl -v -u ${APK_REPO_CRED} --upload-file myrepo-$RV.apk $REPO/myrepo-$RV.apk
- curl -v -u ${APK_REPO_CRED} --upload-file myrepo-lib-$RV.apk $REPO/myrepo-lib-$RV.apk - curl -v -u ${APK_REPO_CRED} --upload-file myrepo-lib-$RV.apk $REPO/myrepo-lib-$RV.apk