From b86f643f8296738fd3f20fa7ed5830dcf52f255e Mon Sep 17 00:00:00 2001 From: Bram Vandendaele Date: Tue, 26 Aug 2025 14:07:34 +0200 Subject: [PATCH] fix other runners --- .gitea/workflows/gitea-actions-demo.yaml | 12 ++++++++---- .gitea/workflows/gitea-actions-rocky.yaml | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/gitea-actions-demo.yaml b/.gitea/workflows/gitea-actions-demo.yaml index f52d5e1..7ed03f4 100644 --- a/.gitea/workflows/gitea-actions-demo.yaml +++ b/.gitea/workflows/gitea-actions-demo.yaml @@ -13,8 +13,9 @@ jobs: steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: apk add --no-cache nodejs python3 docker - - run: python -m ensurepip --upgrade - - run: python -m pip install ansible-builder + - run: python3 -m venv .venv && . .venv/bin/activate + - run: . .venv/bin/activate && python -m ensurepip --upgrade + - run: . .venv/bin/activate && python -m pip install ansible-builder - name: Check out repository code uses: actions/checkout@v4 - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." @@ -31,8 +32,11 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} - - name: build context - run: ansible-builder create -f execution-environment.yml -c context + - run: echo "build context" + - run: python3 -m venv .venv && . .venv/bin/activate + - run: . .venv/bin/activate && python -m ensurepip --upgrade + - run: . .venv/bin/activate && python -m pip install ansible-builder + - run: . .venv/bin/activate && ansible-builder create -f execution-environment.yml -c context - name: List files in the repository run: | ls ${{ gitea.workspace }}/context diff --git a/.gitea/workflows/gitea-actions-rocky.yaml b/.gitea/workflows/gitea-actions-rocky.yaml index c478ca5..c8d4671 100644 --- a/.gitea/workflows/gitea-actions-rocky.yaml +++ b/.gitea/workflows/gitea-actions-rocky.yaml @@ -12,8 +12,9 @@ jobs: steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: apk add --no-cache nodejs python3 docker - - run: python -m ensurepip --upgrade - - run: python -m pip install ansible-builder + - run: python3 -m venv .venv && . .venv/bin/activate + - run: . .venv/bin/activate && python -m ensurepip --upgrade + - run: . .venv/bin/activate && python -m pip install ansible-builder - name: Check out repository code uses: actions/checkout@v4 - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." @@ -30,8 +31,11 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} - - name: build context - run: ansible-builder create -f rocky-environment.yml -c context-rocky + - run: echo "build context" + - run: python3 -m venv .venv && . .venv/bin/activate + - run: . .venv/bin/activate && python -m ensurepip --upgrade + - run: . .venv/bin/activate && python -m pip install ansible-builder + - run: . .venv/bin/activate && ansible-builder create -f rocky-environment.yml -c context-rocky - name: List files in the repository run: | ls ${{ gitea.workspace }}/context-rocky