v24.6.2 #19
Workflow file for this run
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: publish | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
ansible-collection: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
- name: Generate galaxy version | |
id: galaxy_version | |
run: | | |
echo version=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//') >> $GITHUB_OUTPUT | |
- name: Build and publish collection | |
uses: artis3n/ansible_galaxy_collection@v2 | |
with: | |
api_key: "${{ secrets.ANSIBLE_GALAXY_API_KEY }}" | |
galaxy_version: "${{ steps.galaxy_version.outputs.version }}" | |
ee-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install QEMU static binaries | |
uses: docker/[email protected] | |
- name: Configure Buildkit | |
uses: docker/[email protected] | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
- name: Authenticate with Quay.io | |
uses: docker/[email protected] | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_ROBOT_TOKEN }} | |
- name: Generate image tag | |
id: image_tag | |
run: | | |
echo tag=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//') >> $GITHUB_OUTPUT | |
- name: Build image | |
uses: docker/[email protected] | |
with: | |
context: docker | |
file: docker/Dockerfile.awx-ee | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
push: true | |
platforms: | | |
linux/amd64 | |
linux/arm64 | |
tags: | | |
quay.io/tadas/awx-without-k8s-ee:latest | |
quay.io/tadas/awx-without-k8s-ee:${{ steps.image_tag.outputs.tag }} |