Skip to content

Commit

Permalink
adds image rebuild workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
markagonzales committed Nov 29, 2024
1 parent a001916 commit 7e9cb96
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 7e9cb96

Please sign in to comment.