Build ansible ee image #358
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build ansible ee image | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "42 3 * * 4" | |
jobs: | |
build: | |
name: Build image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Install ci requirements | |
run: pip install -r requirements-ci.txt | |
- name: Build image | |
run: ansible-builder build -v 3 -t ansible-ee:latest | |
- name: Push ansible ee to ghcr | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ansible-ee | |
tags: latest | |
registry: ghcr.io/${{ github.repository_owner }}/ | |
username: ${{ github.actor }} | |
password: ${{ github.token }} |