Skip to content

Commit

Permalink
adjusts workflow with build script
Browse files Browse the repository at this point in the history
  • Loading branch information
markagonzales committed Dec 1, 2024
1 parent bdc2cb3 commit e42ca5b
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions .github/workflows/rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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

0 comments on commit e42ca5b

Please sign in to comment.