Skip to content

Commit

Permalink
Use the container only to build the pages
Browse files Browse the repository at this point in the history
Image 'centos/python-27-centos7' is old, running node version `v14.16.0`.
Thus, running actions that depend on newer releases is not possible.

With `addnab/docker-run-action@v3` it's possible to execute docker only as a step.

It surely adds a new dependency, but it can be used as a temporary solution.
  • Loading branch information
netoarmando authored and abbra committed Aug 25, 2024
1 parent 974c9eb commit f688a6b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,26 @@ on:

jobs:
build-and-publish:
name: build pages
name: Build and publish pages
runs-on: ubuntu-latest
container:
image: centos/python-27-centos7
volumes:
- ${{ github.workspace }}:/opt/app-root/src

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run build script
run: ./planet-build-hook.sh
- name: Build pages
uses: addnab/docker-run-action@v3
with:
image: centos/python-27-centos7
options: -v ${{ github.workspace }}:/opt/app-root/src
run: |
./planet-build-hook.sh
- name: Publish gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /opt/app-root/src/php/
publish_dir: ${{ github.workspace }}/php/
cname: planet.freeipa.org
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

0 comments on commit f688a6b

Please sign in to comment.