Skip to content

OpenShiftPlaybookRunner: Support additional Ansible Runner error mess… #34

OpenShiftPlaybookRunner: Support additional Ansible Runner error mess…

OpenShiftPlaybookRunner: Support additional Ansible Runner error mess… #34

Workflow file for this run

name: PyPI/Quay
on:
push:
tags:
- "*"
jobs:
build:
if: ${{ github.event.base_ref == 'refs/heads/master' }}
name: Build Python 🐍 distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# https://github.com/actions/checkout
- name: Set up Python 3.11
uses: actions/setup-python@v5
# https://github.com/actions/setup-python
with:
python-version: "3.11"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build wheel
run: >-
python -m
build
- uses: actions/upload-artifact@v4
# https://github.com/actions/upload-artifact
with:
name: workspace
path: |
dist
Dockerfile
pypi:
name: Publish distribution 📦 to PyPI
needs: build
runs-on: ubuntu-latest
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
environment: release
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
# https://github.com/actions/download-artifact
with:
name: workspace
- uses: pypa/gh-action-pypi-publish@release/v1
# https://github.com/pypa/gh-action-pypi-publish
docker:
name: Build and publish Docker image 🐳
needs: build
runs-on: ubuntu-latest
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
environment: release
steps:
- uses: actions/download-artifact@v4
# https://github.com/actions/download-artifact
with:
name: workspace
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
# https://github.com/docker/metadata-action
with:
images: |
quay.io/ibm/cloud-pak-operations-cli
tags: |
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-qemu-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/setup-buildx-action
- name: Log in to Quay Container Registry
uses: docker/login-action@v3
# https://github.com/docker/login-action
with:
password: ${{ secrets.QUAY_PASSWORD }}
registry: quay.io
username: ${{ secrets.QUAY_USER }}
- name: Build and push
uses: docker/build-push-action@v5
# https://github.com/docker/build-push-action
with:
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
release:
name: Create GitHub release
needs: [docker, pypi]
runs-on: ubuntu-latest
steps:
- uses: softprops/action-gh-release@v2
# https://github.com/softprops/action-gh-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true