From e42ca5b2fe9bcd85a4c828242ea5347e757751b7 Mon Sep 17 00:00:00 2001 From: markagonzales Date: Sun, 1 Dec 2024 12:13:24 -0600 Subject: [PATCH] adjusts workflow with build script --- .github/workflows/rebuild.yaml | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/.github/workflows/rebuild.yaml b/.github/workflows/rebuild.yaml index 344c0df..a35a9b8 100644 --- a/.github/workflows/rebuild.yaml +++ b/.github/workflows/rebuild.yaml @@ -3,21 +3,10 @@ name: Rebuild Rocky9 Ansible 2.14 on: - schedule: - - cron: '30 5 * * 0' + # schedule: + # - cron: '30 5 * * 0' workflow_dispatch: inputs: - ansible-builder-args: - default: '--output-filename Dockerfile' - description: action arguments - required: false - type: string - - action: - default: create - description: Ansible builder action; create or build - required: true - type: string python-version: default: '3.12' @@ -36,7 +25,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '${{ inputs.python-version }}' + python-version: '${{ inputs.python-version || 3.12 }}' - name: Create and start virtual environment shell: bash @@ -51,11 +40,6 @@ jobs: run: | pip install setuptools ansible-builder - - name: Run ansible-builder - shell: bash - run: | - ansible-builder ${{ inputs.action }} ${{ inputs.ansible-builder-args }} - - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -68,14 +52,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Debugging + - name: Run ansible-builder shell: bash run: | - ls -alth ./context/Dockerfile && pwd - - - name: Build and push - uses: docker/build-push-action@v6 - with: - push: true - tags: hooplad/ansible:rocky9-2.14 - context: "./context" + ./build.sh