File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 7
7
APK_PACKAGER : ${{ secrets.APK_PACKAGER }}
8
8
BINTRAY_USERNAME : ${{ secrets.BINTRAY_USERNAME }}
9
9
BINTRAY_API_KEY : ${{ secrets.BINTRAY_API_KEY }}
10
-
10
+ APORTS_SCRIPTS : /home/sandbox/scripts
11
11
on :
12
12
push :
13
13
branches :
@@ -95,16 +95,14 @@ jobs:
95
95
echo -e "Alpine Linux: v${{ env.ALPINE_VERSION }}"
96
96
echo -e "PHP Version: ${{ env.PHP_VERSION }}"
97
97
echo -e "PHP Release: ${{ env.PHP_MINOR_VERSION }}"
98
- echo -e "Current repository files:"
99
- ls -lhart ${{ env.PA_BUILD_PATH }} || echo -e "target directory not found."
100
98
101
99
# build packages.
102
100
- name : build
103
101
run : |
104
102
echo "" > .env
105
103
echo -e "${{ secrets.PHP_ALPINE_RSA }}" > .abuild/php-alpine.rsa
106
104
echo -e "${{ secrets.PHP_ALPINE_RSA_PUB }}" > .abuild/php-alpine.rsa.pub
107
- chmod -R 644 ${{ env.PA_BUILD_PATH }}/* || echo -e "error setting permissions"
105
+ docker-compose run sandbox pa-fix- permissions.sh
108
106
docker-compose run sandbox buildrepo -a /home/sandbox/scripts -p -k ${{ env.PHP_VERSION_SLUG }}
109
107
110
108
# upload artifacts.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # fix all packages permissions.
4
+ sudo chown -R sandbox:sandbox " $HOME " /packages || echo -e " "
5
+ # fix all packages ownership.
6
+ sudo chmod -R 644 " $HOME " /packages/* /* /* .{apk,tar.gz} || echo -e " "
7
+ # list cached packages.
8
+ ls -lhart " $HOME " /packages/* /* /* .{apk,tar.gz} || echo -e " "
You can’t perform that action at this time.
0 commit comments