Skip to content

Commit

Permalink
github-workflow: Bugfix: 'sudo' disappeared from Alpine container
Browse files Browse the repository at this point in the history
  • Loading branch information
dshearer committed Jun 2, 2020
1 parent fd7fb38 commit d6b8e29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ jobs:
apk add make
apk add alpine-sdk
apk add go
apk add su-exec
adduser -G abuild -D jobber
sudo -u jobber abuild-keygen -an
su jobber -c "abuild-keygen -an"
find "/home/jobber/.abuild" -name '*.rsa.pub' -exec mv {} /etc/apk/keys/ ';'
chown root:root /etc/apk/keys/*
Expand All @@ -60,7 +61,7 @@ jobs:
- name: Make package
run: |
chmod a+w . packaging/alpine
sudo -u jobber make -C packaging/alpine pkg-local "DESTDIR=${GITHUB_WORKSPACE}/pkgs/"
su jobber -c "make -C packaging/alpine pkg-local DESTDIR=${GITHUB_WORKSPACE}/pkgs/"
- name: Publish package
uses: actions/upload-artifact@v1.0.0
Expand Down

0 comments on commit d6b8e29

Please sign in to comment.