Skip to content

Commit

Permalink
Merge pull request #5 from markagonzales/workflow
Browse files Browse the repository at this point in the history
adds image rebuild workflow
  • Loading branch information
markagonzales authored Nov 29, 2024
2 parents a001916 + 7e9cb96 commit cb50a7a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflow/rebuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---

name: rebuild rocky9-2.14

on:
# schedule:
# - cron: '30 5 * * 0'
workflow_dispatch:

jobs:
ansiblebuilder:
runs-on: ubuntu-latest
steps:

- name: Check out your collection repository
uses: actions/checkout@v4

- name: Setup Ansible Builder
uses: kheeklab/ansible-builder-action
with:
args: |
--no-cache --prune-images \
--build-arg EE_BASE_IMAGE=quay.io/rockylinux/rockylinux:9 \
--tag hooplad/ansible:rocky9-2.14
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
file: _build/Dockerfile
push: true
tags: hooplad/ansible:rocky9-2.14

0 comments on commit cb50a7a

Please sign in to comment.