Skip to content

Commit

Permalink
final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Jun 20, 2024
1 parent f80ce6a commit 10e8c86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-chrome.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,20 @@ jobs:
-t chrome@${{ steps.get_builder.outputs.builder_ip }} \
'bash -s ${{ inputs.chrome_version }}' < ./build/chrome/scripts/driver.sh
- name: Download artifacts
- name: Prepare artifacts
run: |
ssh -i ~/.ssh/linode_ed25519 \
-o PasswordAuthentication=no \
-t chrome@${{ steps.get_builder.outputs.builder_ip }} \
'zip -r output.zip ./output'
- name: Download artifacts
run: |
scp -i ~/.ssh/linode_ed25519 \
-o PasswordAuthentication=no \
chrome@${{ steps.get_builder.outputs.builder_ip }}:/home/chrome/output.zip \
${{ github.workspace }}/build/chrome/output.zip
unzip ${{ github.workspace }}/build/chrome/output.zip -d ${{ github.workspace }}/build/chrome/output
unzip ${{ github.workspace }}/build/chrome/output.zip -d ${{ github.workspace }}/build/chrome
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
1 change: 0 additions & 1 deletion build/chrome/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ FROM ubuntu:22.04
RUN mkdir /chrome-installer
COPY output/arm64 /chrome-installer/arm64
COPY output/amd64 /chrome-installer/amd64
COPY output/chromedriver /chrome-installer/chromedriver
COPY install-chrome /chrome-installer/install-chrome
8 changes: 4 additions & 4 deletions build/chrome/install-chrome
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ then
libxrender1 \
libxss1 \
libxtst6
chmod +x /chrome-installer/arm64/chromedriver
mv -f /chrome-installer/arm64/chromedriver /usr/local/bin/chromedriver
chmod +x /chrome-installer/arm64/chromedriver-mac-arm64/chromedriver
mv -f /chrome-installer/arm64/chromedriver-mac-arm64/chromedriver /usr/local/bin/chromedriver
mv /chrome-installer/arm64/ /chrome
cp /chrome/chrome_sandbox /usr/local/sbin/chrome-devel-sandbox
chown root:root /usr/local/sbin/chrome-devel-sandbox
chmod 4755 /usr/local/sbin/chrome-devel-sandbox
else
apt-get install -y /chrome-installer/amd64/google-chrome-stable_124.0.6367.201-1_amd64.deb
chmod +x /chrome-installer/amd64/chromedriver
mv -f /chrome-installer/amd64/chromedriver /usr/local/bin/chromedriver
chmod +x /chrome-installer/amd64/chromedriver-linux64/chromedriver
mv -f /chrome-installer/amd64/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver
fi

rm -rf /chrome-installer

0 comments on commit 10e8c86

Please sign in to comment.