Skip to content

Commit

Permalink
[GHA] Proper location for .netrc in PREBUILD_SCRIPT.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Mar 4, 2024
1 parent e21ee81 commit 832a0af
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,26 @@ jobs:
repo_url_amd64="https://\\\${domain}/repo/deb/debian-release"
repo_url_armhf="https://\\\${domain}/repo/deb/rpi/debian-release"
echo "machine \\\${domain} login \\\${login} password \${GENERIC_TOKEN}" > /root/.netrc
cp -f /root/.netrc /etc/apt/auth.conf
echo "machine \\\${domain} login \\\${login} password \${GENERIC_TOKEN}" > ~/.netrc
cp -f ~/.netrc /etc/apt/auth.conf
if [ "${{ matrix.platform }}" == "amd64" ]; then
echo "deb [signed-by=\\\${gpg_key}] \\\${repo_url_amd64}/ ${{ matrix.codename }} main" > \\\${source_list}
echo "deb-src [signed-by=\\\${gpg_key}] \\\${repo_url_amd64}/ ${{ matrix.codename }} main" >> \\\${source_list}
curl --netrc -o \\\${gpg_key} \\\${repo_url_amd64}/signalwire-freeswitch-repo.gpg || exit 1
elif [ "${{ matrix.platform }}" == "armhf" ]; then
echo "deb [signed-by=\\\${gpg_key}] \\\${repo_url_armhf}/ ${{ matrix.codename }} main" > \\\${source_list}
echo "deb-src [signed-by=\\\${gpg_key}] \\\${repo_url_armhf}/ ${{ matrix.codename }} main" >> \\\${source_list}
curl --netrc -o \\\${gpg_key} \\\${repo_url_armhf}/signalwire-freeswitch-repo.gpg || exit 1
else
echo "Architecture is not supported: ${{ matrix.platform }}"
exit 1
fi
echo "cat \\\${source_list}" && cat \\\${source_list}
echo "# cat \\\${source_list}" && cat \\\${source_list}
curl --netrc -o \\\${gpg_key} \\\${repo_url_amd64}/signalwire-freeswitch-repo.gpg && \
apt-get -q update && apt-get -y install libks2
secrets:
GENERIC_TOKEN: ${{ secrets.REPOTOKEN }}
Expand Down

0 comments on commit 832a0af

Please sign in to comment.