Build ansible ee image #376
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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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 }} |