diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index c43a1cf62..dd91898ef 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -7,7 +7,6 @@ concurrency: on: push: branches: - - master paths: - 'ci/ciimage/**' - '.github/workflows/images.yml' diff --git a/ci/ciimage/build.py b/ci/ciimage/build.py index 10fd09905..b355c47a7 100755 --- a/ci/ciimage/build.py +++ b/ci/ciimage/build.py @@ -78,12 +78,13 @@ class Builder(BuilderBase): if [ -f "$HOME/.cargo/env" ]; then source "$HOME/.cargo/env" fi - - if [ -f /etc/profile.env ]; then - source /etc/profile.env - fi ''' + if self.data_dir.name == 'gentoo': + out_data += ''' + source /etc/profile + ''' + out_file.write_text(out_data, encoding='utf-8') # make it executable