Skip to content

Commit

Permalink
chore(docker): automatically update chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Nov 5, 2024
1 parent 60d7f33 commit 17c50c3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_URL: https://github.com/${{ github.repository }}
ADD_CHROME_VERSION: 127
IMAGE: ulixee/ulixee-cloud

steps:
Expand All @@ -22,6 +21,21 @@ jobs:
working-directory: cloud/main
run: export VERSION=$(node -p "require('./package.json').version") && echo "VERSION=$VERSION" >> $GITHUB_ENV

- name: Install yarn packages
run: yarn install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Determine Chrome Versions
shell: bash
run: |
CHROME_PACKAGE=$(yarn list --pattern '@ulixee/chrome-' --depth=0 | grep '@ulixee/chrome-' | grep -Eo 'chrome-[0-9]+-0' | head -1)
CHROME_VERSION=$(echo $CHROME_PACKAGE | awk -F'-' '{print $2}')
PREVIOUS_CHROME_VERSION=$((CHROME_VERSION - 1))
echo "ADD_CHROME_VERSION=$PREVIOUS_CHROME_VERSION" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit 17c50c3

Please sign in to comment.